CurveFitter¶
-
class
spectacle.fitting.
CurveFitter
[source] [edit on github]¶ Bases:
astropy.modeling.fitting.LevMarLSQFitter
Attributes Summary
Methods Summary
__call__
(self, \*args[, method])Fit data to this model.
Attributes Documentation
-
uncertainties
¶
Methods Documentation
-
__call__
(self, *args, method='curve', **kwargs)[source] [edit on github]¶ Fit data to this model.
- Parameters
- model
FittableModel
model to fit to x, y, z
- xarray
input coordinates
- yarray
input coordinates
- zarray (optional)
input coordinates
- weightsarray (optional)
Weights for fitting. For data with Gaussian uncertainties, the weights should be 1/sigma.
- maxiterint
maximum number of iterations
- accfloat
Relative error desired in the approximate solution
- epsilonfloat
A suitable step length for the forward-difference approximation of the Jacobian (if model.fjac=None). If epsfcn is less than the machine precision, it is assumed that the relative errors in the functions are of the order of the machine precision.
- estimate_jacobianbool
If False (default) and if the model has a fit_deriv method, it will be used. Otherwise the Jacobian will be estimated. If True, the Jacobian will be estimated in any case.
- equivalencieslist or None, optional and keyword-only argument
List of additional equivalencies that are should be applied in case x, y and/or z have units. Default is None.
- model
- Returns
- model_copy
FittableModel
a copy of the input model with parameters set by the fitter
- model_copy
-