fit(fitter,
n_dat,
x,
y,
params,
err,
fixed_param)
| source code
|
Performs a nonlinear fit with a preset.
See gwy_math_nlfit_fit_full () for
details.
- Parameters:
fitter - A Marquardt-Levenberg nonlinear fitter already initialized for
preset 's function, or
None . (MathNLFit*)
n_dat - The number of data points (number of items in
x and y ). (int)
x - Abscissa points. (const-gdouble*)
y - Ordinate points. (const-gdouble*)
params - Initial parameter estimate (the number of parameters depends on
the fitted preset and it can be obtained with gwy_nlfit_preset_get_nparams ()).
(gdouble*)
err - Array to store parameter errros to, may be
None . (gdouble*)
fixed_param - Which parameters should be treated as fixed (set corresponding
element to True for them). May be
None if all parameters are variable.
(const-gboolean*)
- Returns:
- Either
fitter itself, or a newly created
fitter if it was None . (MathNLFit*)
|