bec_lib.dap_plugin_objects.LmfitService1DResult#
- class LmfitService1DResult(result: list[dict], model_name: str = None, client: BECClient = None)[source]#
Bases:
object
Result of fitting 1D data using lmfit.
Methods
Evaluate the fit at the given x values.
Plot the fit.
Attributes
The data from the fit.
Get the input data used for the fit.
Get the maximum value of the fit.
Get the minimum value of the fit.
The parameters of the fit.
The report of the fit.
- property data#
The data from the fit.
- eval(x: ndarray)[source]#
Evaluate the fit at the given x values.
- Parameters:
x (array_like) – The x values to evaluate the fit at.
- Returns:
The y values of the fit at the given x values.
- Return type:
array_like
- property input_data#
Get the input data used for the fit.
- Returns:
The input data used for the fit.
- Return type:
dict
- property max#
Get the maximum value of the fit.
- Returns:
The maximum value of the fit.
- Return type:
float
- property min#
Get the minimum value of the fit.
- Returns:
The minimum value of the fit.
- Return type:
float
- property params#
The parameters of the fit.
- property report#
The report of the fit.