Provide Line function (y= A + Bx) as a BaseComponent model
Bases: sans.models.BaseComponent.BaseComponent
Class that evaluates a linear model.
f(x) = A + Bx
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.
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
Check if a given parameter is fittable or not
Parameters: | par_name – the parameter name to check |
---|
Evaluate the model @param x: simple value @return: (Line value)
Evaluate the model @param x: simple value @return: Line value
Set the value of a model parameter
Parameters: |
|
---|