Bases: sans.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.
Returns: | string representatio |
---|
Internal utility function to copy the internal data members to a fresh copy.
Get the list of functions in each layer (shell)
Get the function asked to build sld profile : param func_idx: func type number : param n_sub: total number of sub_layer : param n_s: index of sub_layer : param nu: coefficient of the function : param sld_l: sld on the left side : param sld_r: sld on the right side : return: sld value, float
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
Set params of original model that are hidden from this model
Returns a new object identical to the current object
Evaluate the model in cartesian coordinates
: param x: input q[], or [qx[], qy[]] : return: scattering function P(q[])
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
Check if a given parameter is fittable or not
Parameters: | par_name – the parameter name to check |
---|
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