@Deprecated public class PolynomialFitter extends CurveFitter<PolynomialFunction.Parametric>
curve fitting
.
The estimated coefficients are the polynomial coefficients (see the
fit
method).Constructor and Description |
---|
PolynomialFitter(DifferentiableMultivariateVectorOptimizer optimizer)
Deprecated.
Simple constructor.
|
PolynomialFitter(int degree,
DifferentiableMultivariateVectorOptimizer optimizer)
Deprecated.
Since 3.1 (to be removed in 4.0). Please use
PolynomialFitter(DifferentiableMultivariateVectorOptimizer) instead. |
Modifier and Type | Method and Description |
---|---|
double[] |
fit()
Deprecated.
Since 3.1 (to be removed in 4.0). Please use
fit(double[]) instead. |
double[] |
fit(double[] guess)
Deprecated.
Get the coefficients of the polynomial fitting the weighted data points.
|
double[] |
fit(int maxEval,
double[] guess)
Deprecated.
Get the coefficients of the polynomial fitting the weighted data points.
|
addObservedPoint, addObservedPoint, addObservedPoint, clearObservations, fit, fit, getObservations
@Deprecated public PolynomialFitter(int degree, DifferentiableMultivariateVectorOptimizer optimizer)
PolynomialFitter(DifferentiableMultivariateVectorOptimizer)
instead.The polynomial fitter built this way are complete polynomials, ie. a n-degree polynomial has n+1 coefficients.
degree
- Maximal degree of the polynomial.optimizer
- Optimizer to use for the fitting.public PolynomialFitter(DifferentiableMultivariateVectorOptimizer optimizer)
optimizer
- Optimizer to use for the fitting.@Deprecated public double[] fit()
fit(double[])
instead.ConvergenceException
- if the algorithm failed to converge.public double[] fit(int maxEval, double[] guess)
guess.length - 1
.guess
- First guess for the coefficients. They must be sorted in
increasing order of the polynomial's degree.maxEval
- Maximum number of evaluations of the polynomial.TooManyEvaluationsException
- if
the number of evaluations exceeds maxEval
.ConvergenceException
- if the algorithm failed to converge.public double[] fit(double[] guess)
guess.length - 1
.guess
- First guess for the coefficients. They must be sorted in
increasing order of the polynomial's degree.ConvergenceException
- if the algorithm failed to converge.Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.