FitResult¶
-
class
mcalf.models.
FitResult
(fitted_parameters, fit_info)[source]¶ Bases:
object
Class that holds the result of a fit.
- Parameters
fitted_parameters (numpy.ndarray) – The parameters fitted.
fit_info (dict) – Additional information on the fit including at least ‘classification’, ‘profile’, ‘success’, ‘chi2’ and ‘index’.
-
parameters
¶ The parameters fitted.
- Type
-
__dict__
¶ Other attributes may be present depending on the fit_info used.
Methods Summary
plot
(model, **kwargs)Plot the data and fitted parameters.
velocity
(model[, vtype])Calculate the Doppler velocity of the fit using model parameters.
Methods Documentation
-
plot
(model, **kwargs)[source]¶ Plot the data and fitted parameters.
This calls the plot method on model but will plot for this FitResult object. See the model’s plot method for more details.