Algorithm-CurveFit
view release on metacpan or search on metacpan
(X-Data) and the parameters (see below) should yield the associated
Y-Data value in case of perfect fit.
variable
The 'variable' is the variable in the formula that will be replaced
with the X-Data points for evaluation. If omitted in the call to
"curve_fit", the name 'x' is default. (Hence 'xdata'.)
params
The parameters are the symbols in the formula whose value is varied by
the algorithm to find the best fit of the curve to the data. There may
be one or more parameters, but please keep in mind that the number of
parameters not only increases processing time, but also decreases the
quality of the fit.
The value of this options should be an anonymous array. This array
should hold one anonymous array for each parameter. That array should
hold (in order) a parameter name, an initial guess, and optionally an
accuracy measure.
Example:
The accuracy measure means that if the change of parameters from one
iteration to the next is below each accuracy measure for each
parameter, convergence is assumed and the algorithm stops iterating.
In order to prevent looping forever, you are strongly encouraged to
make use of the accuracy measure (see also: maximum_iterations).
The final set of parameters is not returned from the subroutine but
the parameters are modified in-place. That means the original data
structure will hold the best estimate of the parameters.
xdata
This should be an array reference to an array holding the data for the
variable of the function. (Which defaults to 'x'.)
ydata
This should be an array reference to an array holding the function
values corresponding to the x-values in 'xdata'.
maximum_iterations
lib/Algorithm/CurveFit.pm view on Meta::CPAN
=item variable
The 'variable' is the variable in the formula that will be replaced with the
X-Data points for evaluation. If omitted in the call to C<curve_fit>, the
name 'x' is default. (Hence 'xdata'.)
=item params
The parameters are the symbols in the formula whose value is varied by the
algorithm to find the best fit of the curve to the data. There may be
one or more parameters, but please keep in mind that the number of parameters
not only increases processing time, but also decreases the quality of the fit.
The value of this options should be an anonymous array. This array should
hold one anonymous array for each parameter. That array should hold (in order)
a parameter name, an initial guess, and optionally an accuracy measure.
Example:
$params = [
lib/Algorithm/CurveFit.pm view on Meta::CPAN
The accuracy measure means that if the change of parameters from one iteration
to the next is below each accuracy measure for each parameter, convergence is
assumed and the algorithm stops iterating.
In order to prevent looping forever, you are strongly encouraged to make use of
the accuracy measure (see also: maximum_iterations).
The final set of parameters is B<not> returned from the subroutine but the
parameters are modified in-place. That means the original data structure will
hold the best estimate of the parameters.
=item xdata
This should be an array reference to an array holding the data for the
variable of the function. (Which defaults to 'x'.)
=item ydata
This should be an array reference to an array holding the function values
corresponding to the x-values in 'xdata'.
( run in 0.435 second using v1.01-cache-2.11-cpan-4e96b696675 )