Class fit_quadratic_at_vertex
source code
object --+
|
fit_function --+
|
fit_quadratic_at_vertex
Fit a quadratic function y=a*(x+h)**2+k to the (x,y) array data,
constrained to have a vertex at (h, k), leaving only the free parameter a
for the curvature. (h, k) is specified through the peak_constraint option
in the initialization argument 'opts'.
If initial parameter value = a is not given, the value 1 will be
used.
result.peak is a (xpeak, ypeak) pair, but corresponds to (h,k).
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__
|