class astropy.modeling.fitting.SimplexLSQFitter[source] [edit on github]

Bases: astropy.modeling.fitting.Fitter

Simplex algorithm and least squares statistic.



A linear model is passed to a nonlinear fitter

Attributes Summary


Methods Summary

__call__(model, x, y[, z, weights]) Fit data to this model.

Attributes Documentation

supported_constraints = ['bounds', 'fixed', 'tied']

Methods Documentation

__call__(model, x, y, z=None, weights=None, **kwargs)[source] [edit on github]

Fit data to this model.


model : FittableModel

model to fit to x, y, z

x : array

input coordinates

y : array

input coordinates

z : array (optional)

input coordinates

weights : array (optional)

Weights for fitting. For data with Gaussian uncertainties, the weights should be 1/sigma.

kwargs : dict

optional keyword arguments to be passed to the optimizer or the statistic

maxiter : int

maximum number of iterations

acc : float

Relative error in approximate solution

equivalencies : list 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_copy : FittableModel

a copy of the input model with parameters set by the fitter