Deprecated
As of 3.1 (to be removed in 4.0).
curve fitting.
The estimated coefficients are the polynomial coefficients (see the
fit method).
| Modifier and Type | Field and Description |
|---|---|
| private final int | degree
Deprecated
Polynomial degree.
|
| Access | Constructor and Description |
|---|---|
| public | PolynomialFitter(int
Maximal degree of the polynomial. degree, final DifferentiableMultivariateVectorOptimizer Optimizer to use for the fitting. optimizer)
Deprecated
Since 3.1 (to be removed in 4.0).
Simple constructor. |
| public | PolynomialFitter(DifferentiableMultivariateVectorOptimizer
Optimizer to use for the fitting. optimizer)
Deprecated
as a consequence of
DifferentiableMultivariateVectorOptimizer being deprecated.
Simple constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public double[] | Returns: the coefficients of the polynomial that best fits the observed points.
Deprecated
Since 3.1 (to be removed in 4.0). Please use
fit(double[]) instead.
Get the polynomial fitting the weighted (x, y) points. |
| public double[] | Returns: the coefficients of the polynomial that best fits the observed points.Maximum number of evaluations of the polynomial. maxEval, double[] First guess for the coefficients. They must be sorted in
increasing order of the polynomial's degree. guess)Overrides org. Get the coefficients of the polynomial fitting the weighted data points. |
| public double[] | Returns: the coefficients of the polynomial that best fits the observed points.First guess for the coefficients. They must be sorted in
increasing order of the polynomial's degree. guess)Get the coefficients of the polynomial fitting the weighted data points. |
| degree | back to summary |
|---|---|
| private final int degree
Deprecated
Polynomial degree. | |
| PolynomialFitter | back to summary |
|---|---|
| public PolynomialFitter(int degree, final DifferentiableMultivariateVectorOptimizer optimizer)
Deprecated Since 3.1 (to be removed in 4.0). Please use
Simple constructor. The polynomial fitter built this way are complete polynomials, ie. a n-degree polynomial has n+1 coefficients.
| |
| PolynomialFitter | back to summary |
|---|---|
| public PolynomialFitter(DifferentiableMultivariateVectorOptimizer optimizer)
Deprecated as a consequence of Simple constructor.
| |
| fit | back to summary |
|---|---|
| public double[] fit()
Deprecated Since 3.1 (to be removed in 4.0). Please use Get the polynomial fitting the weighted (x, y) points.
| |
| fit | back to summary |
|---|---|
| public double[] fit(int maxEval, double[] guess) Overrides org. Get the coefficients of the polynomial fitting the weighted data points.
The degree of the fitting polynomial is
| |
| fit | back to summary |
|---|---|
| public double[] fit(double[] guess) Get the coefficients of the polynomial fitting the weighted data points.
The degree of the fitting polynomial is
| |