Bases: sans.models.qsmearing._QSmearer
Adaptor for Gaussian Q smearing class and SANS data
Perform smearing
alias of type
Return a valid copy of self. Avoid copying the _smearer C object and force a matrix recompute when the copy is used.
x.__delattr__(‘name’) <==> del x.name
x.__getattribute__(‘name’) <==> x.name
x.__hash__() <==> hash(x)
Assumption: equally spaced bins of increasing q-values.
Parameters: | data1D – data used to set the smearing parameters |
---|
helper for pickle
helper for pickle
x.__repr__() <==> repr(x)
x.__setattr__(‘name’, value) <==> x.name = value
x.__str__() <==> str(x)
list of weak references to the object (if defined)
Get extrapolated first bin and the last bin
: param first_bin: unextrapolated first_bin : param last_bin: unextrapolated last_bin
: return first_bin, last_bin: extrapolated first and last bin
Get unextrapolated first bin and the last bin
: param first_bin: extrapolated first_bin : param last_bin: extrapolated last_bin
: return fist_bin, last_bin: unextrapolated first and last bin
Initialize the C++ smearer object. This method HAS to be called before smearing
Parameters: |
|
---|
Determine the range needed in unsmeared-Q to cover the smeared Q range Take 3 sigmas as the offset between smeared and unsmeared space
Bases: sans.models.qsmearing._SlitSmearer
Adaptor for slit smearing class and SANS data
Perform smearing
alias of type
Return a valid copy of self. Avoid copying the _smearer C object and force a matrix recompute when the copy is used.
x.__delattr__(‘name’) <==> del x.name
x.__getattribute__(‘name’) <==> x.name
x.__hash__() <==> hash(x)
Assumption: equally spaced bins of increasing q-values.
Parameters: | data1D – data used to set the smearing parameters |
---|
helper for pickle
helper for pickle
x.__repr__() <==> repr(x)
x.__setattr__(‘name’, value) <==> x.name = value
x.__str__() <==> str(x)
list of weak references to the object (if defined)
Get extrapolated first bin and the last bin
: param first_bin: unextrapolated first_bin : param last_bin: unextrapolated last_bin
: return first_bin, last_bin: extrapolated first and last bin
Get unextrapolated first bin and the last bin
: param first_bin: extrapolated first_bin : param last_bin: extrapolated last_bin
: return fist_bin, last_bin: unextrapolated first and last bin
Initialize the C++ smearer object. This method HAS to be called before smearing
Parameters: |
|
---|
Determine the range needed in unsmeared-Q to cover the smeared Q range
Bases: object
Perform smearing
alias of type
Return a valid copy of self. Avoid copying the _smearer C object and force a matrix recompute when the copy is used.
x.__delattr__(‘name’) <==> del x.name
x.__getattribute__(‘name’) <==> x.name
x.__hash__() <==> hash(x)
helper for pickle
helper for pickle
x.__repr__() <==> repr(x)
x.__setattr__(‘name’, value) <==> x.name = value
x.__str__() <==> str(x)
list of weak references to the object (if defined)
Get extrapolated first bin and the last bin
: param first_bin: unextrapolated first_bin : param last_bin: unextrapolated last_bin
: return first_bin, last_bin: extrapolated first and last bin
Get unextrapolated first bin and the last bin
: param first_bin: extrapolated first_bin : param last_bin: extrapolated last_bin
: return fist_bin, last_bin: unextrapolated first and last bin
Parameters: |
|
---|
Bases: sans.models.qsmearing._BaseSmearer
Perform Gaussian Q smearing
Perform smearing
alias of type
Return a valid copy of self. Avoid copying the _smearer C object and force a matrix recompute when the copy is used.
x.__delattr__(‘name’) <==> del x.name
x.__getattribute__(‘name’) <==> x.name
x.__hash__() <==> hash(x)
Initialization
Parameters: |
|
---|
helper for pickle
helper for pickle
x.__repr__() <==> repr(x)
x.__setattr__(‘name’, value) <==> x.name = value
x.__str__() <==> str(x)
list of weak references to the object (if defined)
Get extrapolated first bin and the last bin
: param first_bin: unextrapolated first_bin : param last_bin: unextrapolated last_bin
: return first_bin, last_bin: extrapolated first and last bin
Get unextrapolated first bin and the last bin
: param first_bin: extrapolated first_bin : param last_bin: extrapolated last_bin
: return fist_bin, last_bin: unextrapolated first and last bin
Initialize the C++ smearer object. This method HAS to be called before smearing
Parameters: |
|
---|
Determine the range needed in unsmeared-Q to cover the smeared Q range Take 3 sigmas as the offset between smeared and unsmeared space
Bases: sans.models.qsmearing._BaseSmearer
Slit smearing for I(q) array
Perform smearing
alias of type
Return a valid copy of self. Avoid copying the _smearer C object and force a matrix recompute when the copy is used.
x.__delattr__(‘name’) <==> del x.name
x.__getattribute__(‘name’) <==> x.name
x.__hash__() <==> hash(x)
Initialization
Parameters: |
|
---|
helper for pickle
helper for pickle
x.__repr__() <==> repr(x)
x.__setattr__(‘name’, value) <==> x.name = value
x.__str__() <==> str(x)
list of weak references to the object (if defined)
Get extrapolated first bin and the last bin
: param first_bin: unextrapolated first_bin : param last_bin: unextrapolated last_bin
: return first_bin, last_bin: extrapolated first and last bin
Get unextrapolated first bin and the last bin
: param first_bin: extrapolated first_bin : param last_bin: extrapolated last_bin
: return fist_bin, last_bin: unextrapolated first and last bin
Initialize the C++ smearer object. This method HAS to be called before smearing
Parameters: |
|
---|
Determine the range needed in unsmeared-Q to cover the smeared Q range
Make fake data_x points extrapolated outside of the data_x points
: param width: array of std of q resolution : param Data1D.x: Data1D.x array
: return new_width, data_x_ext: extrapolated width array and x array
: assumption1: data_x is ordered from lower q to higher q : assumption2: len(data) = len(width) : assumption3: the distance between the data points is more compact
than the size of width
: Todo1: Make sure that the assumptions are correct for Data1D : Todo2: This fixes the edge problem in Qsmearer but still needs to make
smearer interface
Creates the right type of smearer according to the data.
The canSAS format has a rule that either slit smearing data OR resolution smearing data is available.
For the present purpose, we choose the one that has none-zero data. If both slit and resolution smearing arrays are filled with good data (which should not happen), then we choose the resolution smearing data.
Parameters: |
|
---|