Class fit_quadratic
source code
object --+
|
fit_function --+
|
fit_quadratic
Fit a quadratic function y=a*x^2+b*x+c to the (x,y) array data. If
initial parameter values = (a,b,c) are not given, the values (1,1,0) will
be used.
If peak_constraint is a tuple of values (x_index, y_value, weight_x,
weight_y) for the approximate position of a turning point in the data,
then this will be used as a soft constraint in the fit.
result.peak is a (xpeak, ypeak) pair. result.f is the fitted function
(accepts x values).
|
|
|
|
Inherited from fit_function :
__init__
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|
Inherited from object :
__class__
|