Provide base functionality for all model components
author: | Mathieu Doucet / UTK |
---|---|
contact: | mathieu.doucet@nist.gov |
Bases: sas.models.BaseComponent.BaseComponent
Basic model component for Addition Provides basic arithmetics
Set the value of a model parameter
Parameters: | name – name of the parameter |
---|---|
Returns: | value of the parameter |
Return a list of all available parameters for the model
Evaluate each part of the component and sum the results
Parameters: | x – input parameter |
---|---|
Returns: | value of the model at x |
Evaluate each part of the component and sum the results
Parameters: | x – input parameter |
---|---|
Returns: | value of the model at x |
Set the value of a model parameter
Parameters: |
|
---|
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/bcc.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CBCCrystalModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a BCCrystalModel model. This file was auto-generated from src/sas/models/include/bcc.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide F(x) = K*1/(4*pi*Lb*(alpha)^(2))*(q^(2)+k2)/(1+(r02)^(2))*(q^(2)+k2) *(q^(2)-(12*h*C/b^(2))) BEPolyelectrolyte as a BaseComponent model
Bases: sas.models.BaseComponent.BaseComponent
Class that evaluates a BEPolyelectrolyte.
F(x) = K*1/(4*pi*Lb*(alpha)^(2))*(q^(2)+k2)/(1+(r02)^(2))*(q^(2)+k2) *(q^(2)-(12*h*C/b^(2)))
Evaluate the model @param x: input q-value (float or [float, float] as [r, theta]) @return: (debye value)
Evaluate the model @param x: input q-value (float or [float, float] as [qx, qy]) @return: debye value
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/barbell.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CBarBellModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a BarBellModel model. This file was auto-generated from src/sas/models/include/barbell.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide base functionality for all model components
Basic model component
Since version 0.5.0, basic operations are no longer supported.
Calculate effective radius
Calculate volume fraction ratio
Returns a new object identical to the current object
Evaluate a distribution of q-values.
For 1D, a numpy array is expected as input:
evalDistribution(q)
where q is a numpy array.
For 2D, a list of numpy arrays are expected: [qx_prime,qy_prime], where 1D arrays,
qx_prime = [ qx[0], qx[1], qx[2], ....]
and
qy_prime = [ qy[0], qy[1], qy[2], ....]
Then get
q = numpy.sqrt(qx_prime^2+qy_prime^2)
that is a qr in 1D array;
q = [q[0], q[1], q[2], ....]
The method is then called the following way:
evalDistribution(q)
where q is a numpy array.
Parameters: | qdist – ndarray of scalar q-values or list [qx,qy] where qx,qy are 1D ndarrays |
---|
Return a list of all available parameters for the model
Set the value of a model parameter
Parameters: | name – name of the parameter |
---|
Return a list of all available parameters for the model
get Param List With Token
get Param With Token
Get SLD profile
Check if a given parameter is fittable or not
Parameters: | par_name – the parameter name to check |
---|
run 1d
run 2d
Set the value of a model parameter
Parameters: |
|
---|
set Param With Token
model dispersions
Provide base functionality for all model components
The following has changed since going from BaseComponent to BaseModel:
- Arithmetic operation between models is no longer supported. It was found to be of little use and not very flexible.
- Parameters are now stored as Parameter object to provide the necessary extra information like limits, units, etc...
Bases: sas.models.ModelAdaptor.ModelAdaptor
Basic model component
Returns a new object identical to the current object
Set the value of a model parameter
Parameters: |
|
---|
Return a list of all available parameters for the model
Set the value of a model parameter
Parameters: |
|
---|
Bases: object
Parameter class
Bases: object
Parameter property allow direct access to the parameter values
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/binaryHS.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CBinaryHSModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a BinaryHSModel model. This file was auto-generated from src/sas/models/include/binaryHS.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
BroadPeakModel function as a BaseComponent model
Bases: sas.models.BaseComponent.BaseComponent
Class that evaluates a BroadPeakModel. I(q) = I(q) = scale_p/pow(qval,exponent)+scale_l/ (1.0 + pow((qval*length_l),exponent_l) )+ background
Evaluate the model
param x: input q-value (float or [float, float] as [r, theta]) return: (scattering value)
Evaluate the model
param x: input q-value (float or [float, float] as [qx, qy]) return: scattering value
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/csparallelepiped.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CCSParallelepipedModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a CSParallelepipedModel model. This file was auto-generated from src/sas/models/include/csparallelepiped.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/capcyl.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CCappedCylinderModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a CappedCylinderModel model. This file was auto-generated from src/sas/models/include/capcyl.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide constant function as a BaseComponent model
Bases: sas.models.BaseComponent.BaseComponent
Class that evaluates a constant model. List of default parameters:
Return a identical copy of self
Evaluate the model @param x: unused @return: (constant value)
Evaluate the model @param x: unused @return: constant value
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/coresecondmoment.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CCore2ndMomentModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a Core2ndMomentModel model. This file was auto-generated from src/sas/models/include/coresecondmoment.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/corefourshell.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CCoreFourShellModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a CoreFourShellModel model. This file was auto-generated from src/sas/models/include/corefourshell.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Core-Multi-Shell model
Bases: sas.models.BaseComponent.BaseComponent
This multi-model is based on CoreFourShellModel and provides the capability of changing the number of shells between 1 and 4.
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Evaluate the model in cartesian coordinates
: param x: input q[], or [qx[], qy[]] : return: scattering function P(q[])
Get SLD profile
: Note: This works only for func_shell# = 2.
Evaluate the model
: param x: input q-value (float or [float, float] as [r, theta]) : return: (DAB value)
Evaluate the model
: param x: input q-value (float or [float, float] as [qx, qy]) : return: DAB value
Set the value of a model parameter
: param name: name of the parameter : param value: value of the parameter
Set the dispersion object for a model parameter
: param parameter: name of the parameter [string] :dispersion: dispersion object of type DispersionModel
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/core_shell_bicelle.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CCoreShellBicelleModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a CoreShellBicelleModel model. This file was auto-generated from src/sas/models/include/core_shell_bicelle.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/core_shell_cylinder.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CCoreShellCylinderModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a CoreShellCylinderModel model. This file was auto-generated from src/sas/models/include/core_shell_cylinder.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/spheroid.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CCoreShellEllipsoidModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a CoreShellEllipsoidModel model. This file was auto-generated from src/sas/models/include/spheroid.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/spheroidXT.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CCoreShellEllipsoidXTModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a CoreShellEllipsoidXTModel model. This file was auto-generated from src/sas/models/include/spheroidXT.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/core_shell.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CCoreShellModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a CoreShellModel model. This file was auto-generated from src/sas/models/include/core_shell.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
CorrLengthModel function as a BaseComponent model
Bases: sas.models.BaseComponent.BaseComponent
Class that evaluates a CorrLengthModel. I(q) = I(q) = scale_p/pow(q,exponent)+scale_l/ (1.0 + pow((q*length_l),exponent_l) )+ background
Evaluate the model
param x: input q-value (float or [float, float] as [r, theta]) return: (scattering value)
Evaluate the model
param x: input q-value (float or [float, float] as [qx, qy]) return: scattering value
Provide cos(x) function as a BaseComponent model
Bases: sas.models.BaseComponent.BaseComponent
Class that evaluates a cos(x) model.
Return a identical copy of self
Evaluate the model @param x: input x, or [x, phi] [radian] @return: cos(x) or cos(x*cos(phi))*cos(x*cos(phi))
Evaluate the model @param x: input x, or [x, y] [radian] @return: cos(x) or cos(x)*cos(y)
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/cylinder.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CCylinderModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a CylinderModel model. This file was auto-generated from src/sas/models/include/cylinder.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/dabmodel.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CDABModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a DABModel model. This file was auto-generated from src/sas/models/include/dabmodel.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide F(x) = 2( exp(-x) + x - 1 )/x**2 with x = (q*R_g)**2
Debye function as a BaseComponent model
Bases: sas.models.BaseComponent.BaseComponent
Class that evaluates a Debye model.
F(x) = 2( exp(-x) + x - 1 )/x**2 with x = (q*R_g)**2
Evaluate the model @param x: input q-value (float or [float, float] as [r, theta]) @return: (debye value)
Evaluate the model @param x: input q-value (float or [float, float] as [qx, qy]) @return: debye value
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/DiamCyl.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CDiamCylFunc, sas.models.BaseComponent.BaseComponent
Class that evaluates a DiamCylFunc model. This file was auto-generated from src/sas/models/include/DiamCyl.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/DiamEllip.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CDiamEllipFunc, sas.models.BaseComponent.BaseComponent
Class that evaluates a DiamEllipFunc model. This file was auto-generated from src/sas/models/include/DiamEllip.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Wrapper for the Disperser class extension
Bases: Disperser, sas.models.BaseComponent.BaseComponent
Wrapper class for the Disperser extension Python class that takes a model and averages its output for a distribution of its parameters.
The parameters to be varied are specified at instantiation time. The distributions are Gaussian, with std deviations specified for each parameter at instantiation time.
Example:
cyl = CylinderModel()
disp = DisperseModel(cyl, ['cyl_phi'], [0.3])
disp.run([0.01, 1.57])
Return a identical copy of self
Get the value of the given parameter :param name: parameter name
Evaluate the model :param x: input q, or [q,phi] :return: scattering function P(q)
Evaluate the model :param x: input q, or [q,phi] :return: scattering function P(q)
Set a parameter value :param name: parameter name
Provide base functionality for all model components @author: Mathieu Doucet / UTK @contact: mathieu.doucet@nist.gov
Bases: sas.models.BaseComponent.BaseComponent
Basic model component for Division Provides basic arithmetics
Set the value of a model parameter @param name: name of the parameter @return: value of the parameter
Return a list of all available parameters for the model
Evaluate each part of the component and sum the results @param x: input parameter @return: value of the model at x
Evaluate each part of the component and sum the results @param x: input parameter @return: value of the model at x
Set the value of a model parameter @param name: name of parameter to set @param value: value to give the paramter
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/ellipsoid.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CEllipsoidModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a EllipsoidModel model. This file was auto-generated from src/sas/models/include/ellipsoid.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/elliptical_cylinder.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CEllipticalCylinderModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a EllipticalCylinderModel model. This file was auto-generated from src/sas/models/include/elliptical_cylinder.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/fcc.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CFCCrystalModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a FCCrystalModel model. This file was auto-generated from src/sas/models/include/fcc.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/flexcyl_ellipX.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CFlexCylEllipXModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a FlexCylEllipXModel model. This file was auto-generated from src/sas/models/include/flexcyl_ellipX.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/flexible_cylinder.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CFlexibleCylinderModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a FlexibleCylinderModel model. This file was auto-generated from src/sas/models/include/flexible_cylinder.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Fractal Core-Shell model
Bases: sas.models.BaseComponent.BaseComponent
Class that evaluates a FractalCoreShellModel List of default parameters: volfraction = 0.05 radius = 20.0 [A] thickness = 5.0 [A] frac_dim = 2.0 cor_length = 100 [A] core_sld = 3.5e-006 [1/A^(2)] shell_sld = 1.0e-006 [1/A^(2)] solvent_sld = 6.35e-006 [1/A^(2)] background = 0.0 [1/cm]
Evaluate the model
: param x: input q-value (float or [float, float] as [r, theta]) : return: (DAB value)
Evaluate the model
: param x: input q-value (float or [float, float] as [qx, qy]) : return: DAB value
Set the value of a model parameter
: param name: name of the parameter : param value: value of the parameter
Set the dispersion object for a model parameter
: param parameter: name of the parameter [string] :dispersion: dispersion object of type DispersionModel
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/fractal.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CFractalModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a FractalModel model. This file was auto-generated from src/sas/models/include/fractal.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/FractalQtoN.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CFractalO_Z, sas.models.BaseComponent.BaseComponent
Class that evaluates a FractalO_Z model. This file was auto-generated from src/sas/models/include/FractalQtoN.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/fuzzysphere.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CFuzzySphereModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a FuzzySphereModel model. This file was auto-generated from src/sas/models/include/fuzzysphere.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide I(q) = I_0 exp ( - R_g^2 q^2 / 3.0) GaussLorentzGel function as a BaseComponent model
Bases: sas.models.BaseComponent.BaseComponent
Class that evaluates a GaussLorentzGel model.
Evaluate the model @param x: input q-value (float or [float, float] as [r, theta]) @return: (guinier value)
Evaluate the model @param x: input q-value (float or [float, float] as [qx, qy]) @return: guinier value
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/gaussian.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CGaussian, sas.models.BaseComponent.BaseComponent
Class that evaluates a Gaussian model. This file was auto-generated from src/sas/models/include/gaussian.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/GelFit.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CGelFitModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a GelFitModel model. This file was auto-generated from src/sas/models/include/GelFit.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide I(q) = I_0 exp ( - R_g^2 q^2 / 3.0) Guinier function as a BaseComponent model
Bases: sas.models.BaseComponent.BaseComponent
Class that evaluates a Guinier model.
I(q) = I_0 exp ( - R_g^2 q^2 / 3.0 )
Evaluate the model @param x: input q-value (float or [float, float] as [r, theta]) @return: (guinier value)
Evaluate the model @param x: input q-value (float or [float, float] as [qx, qy]) @return: guinier value
Guinier function as a BaseComponent model
Bases: sas.models.BaseComponent.BaseComponent
Class that evaluates a GuinierPorod model.
Evaluate the model @param x: input q-value (float or [float, float] as [r, theta]) @return: (guinier value)
Evaluate the model @param x: input q-value (float or [float, float] as [qx, qy]) @return: guinier value
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/Hardsphere.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CHardsphereStructure, sas.models.BaseComponent.BaseComponent
Class that evaluates a HardsphereStructure model. This file was auto-generated from src/sas/models/include/Hardsphere.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/HayterMSA.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CHayterMSAStructure, sas.models.BaseComponent.BaseComponent
Class that evaluates a HayterMSAStructure model. This file was auto-generated from src/sas/models/include/HayterMSA.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/hollow_cylinder.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CHollowCylinderModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a HollowCylinderModel model. This file was auto-generated from src/sas/models/include/hollow_cylinder.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/lamellarFF_HG.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CLamellarFFHGModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a LamellarFFHGModel model. This file was auto-generated from src/sas/models/include/lamellarFF_HG.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/lamellar.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CLamellarModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a LamellarModel model. This file was auto-generated from src/sas/models/include/lamellar.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/lamellarPC.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CLamellarPCrystalModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a LamellarPCrystalModel model. This file was auto-generated from src/sas/models/include/lamellarPC.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/lamellarPS_HG.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CLamellarPSHGModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a LamellarPSHGModel model. This file was auto-generated from src/sas/models/include/lamellarPS_HG.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/lamellarPS.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CLamellarPSModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a LamellarPSModel model. This file was auto-generated from src/sas/models/include/lamellarPS.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide Line function (y= A + Bx) as a BaseComponent model
Bases: sas.models.BaseComponent.BaseComponent
Class that evaluates a linear model.
f(x) = A + Bx
Evaluate a distribution of q-values.
For 1D, a numpy array is expected as input:
evalDistribution(q)
where q is a numpy array.
Parameters: | qdist – ndarray of scalar q-values or list [qx,qy] where qx,qy are 1D ndarrays |
---|
Evaluate the model @param x: simple value @return: (Line value)
Evaluate the model @param x: simple value @return: Line value
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/linearpearls.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CLinearPearlsModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a LinearPearlsModel model. This file was auto-generated from src/sas/models/include/linearpearls.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/logNormal.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CLogNormal, sas.models.BaseComponent.BaseComponent
Class that evaluates a LogNormal model. This file was auto-generated from src/sas/models/include/logNormal.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide F(x) = scale/( 1 + (x*L)^2 ) + bkd Lorentz (Ornstein-Zernicke) function as a BaseComponent model
Bases: sas.models.BaseComponent.BaseComponent
Class that evaluates a Lorentz (Ornstein-Zernicke) model.
F(x) = scale/( 1 + (x*L)^2 ) + bkd
Evaluate the model @param x: input q-value (float or [float, float] as [r, theta]) @return: (Lorentz value)
Evaluate the model @param x: input q-value (float or [float, float] as [qx, qy]) @return: Lorentz value
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/lorentzian.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CLorentzian, sas.models.BaseComponent.BaseComponent
Class that evaluates a Lorentzian model. This file was auto-generated from src/sas/models/include/lorentzian.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/massfractal.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CMassFractalModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a MassFractalModel model. This file was auto-generated from src/sas/models/include/massfractal.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/masssurfacefractal.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CMassSurfaceFractal, sas.models.BaseComponent.BaseComponent
Class that evaluates a MassSurfaceFractal model. This file was auto-generated from src/sas/models/include/masssurfacefractal.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/micelleSphCore.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CMicelleSphCoreModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a MicelleSphCoreModel model. This file was auto-generated from src/sas/models/include/micelleSphCore.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
This software was developed by the University of Tennessee as part of the Distributed Data Analysis of Neutron Scattering Experiments (DANSE) project funded by the US National Science Foundation.
If you use DANSE applications to do scientific research that leads to publication, we ask that you acknowledge the use of the software with the following sentence:
“This work benefited from DANSE software developed under NSF award DMR-0520547.”
copyright 2008, University of Tennessee
Bases: object
Model adaptor to provide old-style model functionality
get Param List With Token
get Param With Token
set Param With Token
Bases: dict
Parameter dictionary used for backward compatibility between the old-style ‘params’ dictionary and the new-style ‘parameters’ dictionary.
Provide base functionality for all model components @author: Mathieu Doucet / UTK @contact: mathieu.doucet@nist.gov
Bases: sas.models.BaseComponent.BaseComponent
Basic model component for Multiply Provides basic arithmetics
Set the value of a model parameter @param name: name of the parameter @return: value of the parameter
Return a list of all available parameters for the model
Evaluate each part of the component and sum the results @param x: input parameter @return: value of the model at x
Evaluate each part of the component and sum the results @param x: input parameter @return: value of the model at x
Set the value of a model parameter @param name: name of parameter to set @param value: value to give the paramter
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/multishell.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CMultiShellModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a MultiShellModel model. This file was auto-generated from src/sas/models/include/multishell.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Bases: sas.models.BaseComponent.BaseComponent
Use for P(Q)*S(Q); function call must be in the order of P(Q) and then S(Q): The model parameters are combined from both models, P(Q) and S(Q), except 1) ‘effect_radius’ of S(Q) which will be calculated from P(Q) via calculate_ER(), and 2) ‘scale’ in P model which is synchronized w/ volfraction in S then P*S is multiplied by a new param, ‘scale_factor’. The polydispersion is applicable only to P(Q), not to S(Q). Note: P(Q) refers to ‘form factor’ model while S(Q) does to ‘structure factor’.
Evaluate the model in cartesian coordinates :param x: input q[], or [qx[], qy[]] :return: scattering function P(q[])
Fill the description for P(Q)*S(Q)
Get SLD profile of p_model if exists
: Note: This works only for func_shell# = 2 (exp function).
Evaluate the model :param x: input q-value (float or [float, float] as [r, theta]) :return: (scattering function value)
Evaluate the model @param x: input q-value (float or [float, float] as [qx, qy]) @return: scattering function value
Set the value of a model parameter
Parameters: |
|
---|
Set the dispersion object for a model parameter :param parameter: name of the parameter [string] :dispersion: dispersion object of type DispersionModel
Provide sin(x) function as a BaseComponent model
Bases: sas.models.BaseComponent.BaseComponent
Class that evaluates a sin(x) model.
Return a identical copy of self
Evaluate the model @param x: input x @return: 1
Evaluate the model @param x: input x, or [x, y] [radian] @return: sin(x) or sin(x)*sin(y)
Provide sin(x) function as a BaseComponent model
Bases: sas.models.BaseComponent.BaseComponent
Class that evaluates a sin(x) model.
Return a identical copy of self
Evaluate the model @param x: input x @return: 1
Evaluate the model @param x: input x, or [x, y] [radian] @return: sin(x) or sin(x)*sin(y)
Bases: sas.models.BaseComponent.BaseComponent
This multi-model is based on CoreMultiShellModel with exponential func shells and provides the capability of changing the number of shells between 1 and 10.
Evaluate the model in cartesian coordinates
: param x: input q[], or [qx[], qy[]] : return: scattering function P(q[])
Get SLD profile
Evaluate the model
: param x: input q-value (float or [float, float] as [r, theta]) : return: (I value)
Evaluate the model
: param x: input q-value (float or [float, float] as [qx, qy]) : return: I value
Set the value of a model parameter
: param name: name of the parameter : param value: value of the parameter
Set the dispersion object for a model parameter
: param parameter: name of the parameter [string] :dispersion: dispersion object of type DispersionModel
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/onion.h AND RE-RUN THE GENERATOR SCRIPT
Bases: COnionModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a OnionModel model. This file was auto-generated from src/sas/models/include/onion.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/parallelepiped.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CParallelepipedModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a ParallelepipedModel model. This file was auto-generated from src/sas/models/include/parallelepiped.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Model describes a Gaussian shaped peak including a flat background Provide F(q) = scale*exp( -1/2 *[(q-q0)/B]^2 )+ background PeakGaussModel function as a BaseComponent model
Bases: sas.models.BaseComponent.BaseComponent
Class that evaluates a gaussian shaped peak.
F(q) = scale*exp( -1/2 *[(q-qo)/B]^2 )+ background
Evaluate the model @param x: input q-value (float or [float, float] as [r, theta]) @return: (Peak Gaussian value)
Evaluate the model @param x: input q-value (float or [float, float] as [qx, qy]) @return: Peak Gaussian value
Model describes a Lorentzian shaped peak including a flat background Provide F(q) = scale/(1+[(q-q0)/B]^2 ) + background PeakLorentzModel function as a BaseComponent model
Bases: sas.models.BaseComponent.BaseComponent
Class that evaluates a gaussian shaped peak.
F(q) = scale/(1+[(q-q0)/B]^2 ) + background
Evaluate the model @param x: input q-value (float or [float, float] as [r, theta]) @return: Peak Lorentzian value
Evaluate the model @param x: input q-value (float or [float, float] as [qx, qy]) @return: Peak Lorentzian value
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/pearlnecklace.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CPearlNecklaceModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a PearlNecklaceModel model. This file was auto-generated from src/sas/models/include/pearlnecklace.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/polygausscoil.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CPoly_GaussCoil, sas.models.BaseComponent.BaseComponent
Class that evaluates a Poly_GaussCoil model. This file was auto-generated from src/sas/models/include/polygausscoil.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Bases: sas.models.BaseComponent.BaseComponent
Class that evaluates a PolymerExclVolModel model. This file was auto-generated from ..c_extensionspolyexclvol.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Evaluate the model @param x: input q-value (float or [float, float] as [r, theta]) @return: (guinier value)
Evaluate the model @param x: input q-value (float or [float, float] as [qx, qy]) @return: guinier value
Provide I(q) = C/q^4, Porod function as a BaseComponent model
Bases: sas.models.BaseComponent.BaseComponent
Class that evaluates a Porod model. I(q) = scale/q^4 +background
Evaluate the model @param x: input q-value (float or [float, float] as [r, theta]) @return: (porod value)
Evaluate the model @param x: input q-value (float or [float, float] as [qx, qy]) @return: porod value
Provide F(x) = scale* (|x|)^(-m) + bkd Power law function as a BaseComponent model
Bases: sas.models.PowerLawModel.PowerLawModel
Class that evaluates a absolute Power_Law model.
F(x) = scale* (|x|)^(-m) + bkd
The model has three parameters:
Provide F(x) = scale* (x)^(-m) + bkd Power law function as a BaseComponent model
Bases: sas.models.BaseComponent.BaseComponent
Class that evaluates a Power_Law model.
F(x) = scale* (x)^(-m) + bkd
Evaluate the model :param x: input q-value (float or [float, float] as [r, theta]) :return: (PowerLaw value)
Evaluate the model @param x: input q-value (float or [float, float] as [qx, qy]) @return: PowerLaw value
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/pringles.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CPringlesModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a PringlesModel model. This file was auto-generated from src/sas/models/include/pringles.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Bases: sas.models.BaseComponent.BaseComponent
This multi-model is based on Parratt formalism and provides the capability of changing the number of layers between 0 and 10.
Evaluate the model in cartesian coordinates
: param x: input q[], or [qx[], qy[]] : return: scattering function P(q[])
Get SLD profile
: return: None, No SLD profile supporting for this model
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model
: param x: input q-value (float or [float, float] as [qx, qy]) : return: scattering function value
Set the value of a model parameter
: param name: name of the parameter : param value: value of the parameter
Set the dispersion object for a model parameter
: param parameter: name of the parameter [string] :dispersion: dispersion object of type DispersionModel
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/rpa.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CRPAModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a RPAModel model. This file was auto-generated from src/sas/models/include/rpa.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/raspberry.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CRaspBerryModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a RaspBerryModel model. This file was auto-generated from src/sas/models/include/raspberry.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/RectangularHollowPrismInfThinWalls.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CRectangularHollowPrismInfThinWallsModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a RectangularHollowPrismInfThinWallsModel model. This file was auto-generated from src/sas/models/include/RectangularHollowPrismInfThinWalls.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/RectangularHollowPrism.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CRectangularHollowPrismModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a RectangularHollowPrismModel model. This file was auto-generated from src/sas/models/include/RectangularHollowPrism.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/RectangularPrism.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CRectangularPrismModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a RectangularPrismModel model. This file was auto-generated from src/sas/models/include/RectangularPrism.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/refl_adv.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CReflAdvModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a ReflAdvModel model. This file was auto-generated from src/sas/models/include/refl_adv.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/refl.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CReflModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a ReflModel model. This file was auto-generated from src/sas/models/include/refl.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Bases: sas.models.BaseComponent.BaseComponent
This multi-model is based on Parratt formalism and provides the capability of changing the number of layers between 0 and 10.
Evaluate the model in cartesian coordinates
: param x: input q[], or [qx[], qy[]] : return: scattering function P(q[])
Get SLD profile
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model
: param x: input q-value (float or [float, float] as [qx, qy]) : return: scattering function value
Set the value of a model parameter
: param name: name of the parameter : param value: value of the parameter
Set the dispersion object for a model parameter
: param parameter: name of the parameter [string] :dispersion: dispersion object of type DispersionModel
Bases: sas.models.BaseComponent.BaseComponent
This multi-model is based on Parratt formalism and provides the capability of changing the number of layers between 0 and 10.
Evaluate the model in cartesian coordinates
: param x: input q[], or [qx[], qy[]] : return: scattering function P(q[])
Get SLD profile
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model
: param x: input q-value (float or [float, float] as [qx, qy]) : return: scattering function value
Set the value of a model parameter
: param name: name of the parameter : param value: value of the parameter
Set the dispersion object for a model parameter
: param parameter: name of the parameter [string] :dispersion: dispersion object of type DispersionModel
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/sc.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CSCCrystalModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a SCCrystalModel model. This file was auto-generated from src/sas/models/include/sc.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/sld_cal.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CSLDCalFunc, sas.models.BaseComponent.BaseComponent
Class that evaluates a SLDCalFunc model. This file was auto-generated from src/sas/models/include/sld_cal.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/schulz.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CSchulz, sas.models.BaseComponent.BaseComponent
Class that evaluates a Schulz model. This file was auto-generated from src/sas/models/include/schulz.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide sin(x) function as a BaseComponent model
Bases: sas.models.BaseComponent.BaseComponent
Class that evaluates a sin(x) model.
Return a identical copy of self
Evaluate the model @param x: input x, or [x, phi] [radian] @return: sin(x) or sin(x*cos(phi))*sin(x*sin(phi))
Evaluate the model @param x: input x, or [x, y] [radian] @return: sin(x) or sin(x)*sin(y)
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/sphere.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CSphereModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a SphereModel model. This file was auto-generated from src/sas/models/include/sphere.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/spheresld.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CSphereSLDModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a SphereSLDModel model. This file was auto-generated from src/sas/models/include/spheresld.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Spherical SLD model
Bases: sas.models.BaseComponent.BaseComponent
This multi-model is based on Parratt formalism and provides the capability of changing the number of layers between 0 and 10.
Evaluate the model in cartesian coordinates
: param x: input q[], or [qx[], qy[]] : return: scattering function P(q[])
Get SLD profile
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model
: param x: input q-value (float or [float, float] as [qx, qy]) : return: scattering function value
Set the value of a model parameter
: param name: name of the parameter : param value: value of the parameter
Set the dispersion object for a model parameter
: param parameter: name of the parameter [string] :dispersion: dispersion object of type DispersionModel
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/SquareWell.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CSquareWellStructure, sas.models.BaseComponent.BaseComponent
Class that evaluates a SquareWellStructure model. This file was auto-generated from src/sas/models/include/SquareWell.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/stacked_disks.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CStackedDisksModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a StackedDisksModel model. This file was auto-generated from src/sas/models/include/stacked_disks.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/starpolymer.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CStarPolymer, sas.models.BaseComponent.BaseComponent
Class that evaluates a StarPolymer model. This file was auto-generated from src/sas/models/include/starpolymer.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/StickyHS.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CStickyHSStructure, sas.models.BaseComponent.BaseComponent
Class that evaluates a StickyHSStructure model. This file was auto-generated from src/sas/models/include/StickyHS.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide base functionality for all model components @author: Mathieu Doucet / UTK @contact: mathieu.doucet@nist.gov
Bases: sas.models.BaseComponent.BaseComponent
Basic model component for Subtraction Provides basic arithmetics
Set the value of a model parameter @param name: name of the parameter @return: value of the parameter
Return a list of all available parameters for the model
Evaluate each part of the component and sum the results @param x: input parameter @return: value of the model at x
Evaluate each part of the component and sum the results @param x: input parameter @return: value of the model at x
Set the value of a model parameter @param name: name of parameter to set @param value: value to give the paramter
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/surfacefractal.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CSurfaceFractalModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a SurfaceFractalModel model. This file was auto-generated from src/sas/models/include/surfacefractal.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/teubner_strey.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CTeubnerStreyModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a TeubnerStreyModel model. This file was auto-generated from src/sas/models/include/teubner_strey.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/triaxial_ellipsoid.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CTriaxialEllipsoidModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a TriaxialEllipsoidModel model. This file was auto-generated from src/sas/models/include/triaxial_ellipsoid.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
TwoLorentzianModel function as a BaseComponent model
Bases: sas.models.BaseComponent.BaseComponent
Class that evaluates a TwoLorentzianModel. I(q) = II(q) = scale_1/(1.0 + pow((q*length_1),exponent_1)) + scale_2/(1.0 + pow((q*length_2),exponent_2) )+ background
Evaluate the model
param x: input q-value (float or [float, float] as [r, theta]) return: (scattering value)
Evaluate the model
param x: input q-value (float or [float, float] as [qx, qy]) return: scattering value
TwoPowerLaw function as a BaseComponent model
Bases: sas.models.BaseComponent.BaseComponent
Class that evaluates a TwoPowerLawModel.
where C=coef_A*pow(qc,-1.0*power1)/pow(qc,-1.0*power2).
List of default parameters:
Evaluate the model @param x: input q-value (float or [float, float] as [r, theta]) @return: (guinier value)
Evaluate the model @param x: input q-value (float or [float, float] as [qx, qy]) @return: guinier value
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/TwoYukawa.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CTwoYukawaModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a TwoYukawaModel model. This file was auto-generated from src/sas/models/include/TwoYukawa.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Bases: sas.models.BaseComponent.BaseComponent
This model is based on Exponential/Power-law fit method developed by G. Beaucage
Get SLD profile
: return: None, No SLD profile supporting for this model
Evaluate the model
: param x: input q-value (float or [float, float] as [r, theta]) : return: (DAB value)
Evaluate the model
: param x: input q-value (float or [float, float] as [qx, qy]) : return: DAB value
Set the value of a model parameter
: param name: name of the parameter : param value: value of the parameter
Set the dispersion object for a model parameter
: param parameter: name of the parameter [string] :dispersion: dispersion object of type DispersionModel
Provide functionality for a C extension model
Warning
THIS FILE WAS GENERATED BY WRAPPERGENERATOR.PY DO NOT MODIFY THIS FILE, MODIFY src/sas/models/include/vesicle.h AND RE-RUN THE GENERATOR SCRIPT
Bases: CVesicleModel, sas.models.BaseComponent.BaseComponent
Class that evaluates a VesicleModel model. This file was auto-generated from src/sas/models/include/vesicle.h. Refer to that file and the structure it contains for details of the model.
List of default parameters:
Calculate the effective radius for P(q)*S(q)
Returns: | the value of the effective radius |
---|
Calculate the volf ratio for P(q)*S(q)
Returns: | the value of the volf ratio |
---|
Return a identical copy of self
Evaluate the model in cartesian coordinates
Parameters: | x – input q[], or [qx[], qy[]] |
---|---|
Returns: | scattering function P(q[]) |
Evaluate the model
Parameters: | x – input q, or [q,phi] |
---|---|
Returns: | scattering function P(q) |
Evaluate the model in cartesian coordinates
Parameters: | x – input q, or [qx, qy] |
---|---|
Returns: | scattering function P(q) |
Set the dispersion object for a model parameter
Parameters: |
|
---|
Create a model instance
Class definitions for python dispersion model for model parameters. These classes are bridges to the C++ dispersion object.
The ArrayDispersion class takes in numpy arrays only.
Usage: These classes can be used to set the dispersion model of a SAS model parameter:
cyl = CylinderModel() cyl.set_dispersion(‘radius’, GaussianDispersion())
After the dispersion model is set, you can access it’s parameter through the dispersion dictionary:
cyl.dispersion[‘radius’][‘width’] = 5.0
TODO: | For backward compatibility, the model parameters are still kept in a dictionary. The next iteration of refactoring work should involve moving away from value-based parameters to object-based parameter. We want to store parameters as objects so that we can unify the ‘params’ and ‘dispersion’ dictionaries into a single dictionary of parameter objects that hold the complete information about the parameter (units, limits, dispersion model, etc...). |
---|
Bases: sas.models.dispersion_models.DispersionModel
Python bridge class for a dispersion model based on arrays. The user has to set a weight distribution that will be used in the averaging the model parameter it is applied to.
Set the weights of an array dispersion Only accept numpy arrays.
Parameters: |
|
---|
Python bridge class for a basic dispersion model class with a constant parameter value distribution
Set the weights of an array dispersion
Bases: sas.models.dispersion_models.DispersionModel
Python bridge class for a dispersion model based on a Gaussian distribution.
Set the weights of an array dispersion
Bases: sas.models.dispersion_models.DispersionModel
Python bridge class for a dispersion model based on a Log Normal distribution.
Set the weights of an array dispersion
Bases: sas.models.dispersion_models.DispersionModel
Python bridge class for a dispersion model based on a Gaussian distribution.
Set the weights of an array dispersion
Bases: sas.models.dispersion_models.DispersionModel
Python bridge class for a dispersion model based on a Schulz distribution.
Set the weights of an array dispersion
Bases: sas.models.BaseComponent.BaseComponent
Function to be implemented by the plug-in writer
Evaluate the model
Parameters: | x – input x, or [x, phi] [radian] |
---|---|
Returns: | function value |
Evaluate the model
Parameters: | x – input x, or [x, y] |
---|---|
Returns: | function value |
Set default details
Handle Q smearing
Bases: sas.models.qsmearing._QSmearer
Adaptor for Gaussian Q smearing class and SAS data
Bases: sas.models.qsmearing._SlitSmearer
Adaptor for slit smearing class and SAS data
Make fake data_x points extrapolated outside of the data_x points
Parameters: |
|
---|---|
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: |
|
---|
#This software was developed by the University of Tennessee as part of the #Distributed Data Analysis of Neutron Scattering Experiments (DANSE) #project funded by the US National Science Foundation. #See the license text in license.txt
Gaussian Q smearing class for SAS 2d data
Get qx_data, qy_data, dqx_data,dqy_data, and calculate phi_data=arctan(qx_data/qy_data)
Over sampling of r_nbins times phi_nbins, calculate Gaussian weights, then find smeared intensity
Set accuracy.
Parameters: | accuracy – string |
---|
Set data.
Parameters: | data – DataLoader.Data_info type |
---|
Set index.
Parameters: | index – 1d arrays |
---|
Set model.
Parameters: | model – sas.models instance |
---|
Set whether or not smearer will be used
Parameters: | smearer – smear object |
---|