Bases: sans.models.BaseComponent.BaseComponent
This model is based on Exponential/Power-law fit method developed by G. Beaucage
Returns: | string representatio |
---|
Internal utility function to copy the internal data members to a fresh copy.
Get the list of functions in each cases
Helper function to setParam
Concatenate details of the original model to create this model details
model dispersions
Fill the self.fixed list with the model fixed list
Concatenate the parameters of the model to create this model parameters
Scattering function
Parameters: | x – q value(s) |
---|---|
Return answer: | output of the function |
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.
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], ....]
Note : | Due to 2D speed issue, no anisotropic scattering is supported for python models, thus C-models should have
|
---|
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 SLD profile
: return: None, No SLD profile supporting for this model
Check if a given parameter is fittable or not
Parameters: | par_name – the parameter name to check |
---|
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