|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.math.optimization.fitting.CurveFitter
org.apache.commons.math.optimization.fitting.PolynomialFitter
public class PolynomialFitter
This class implements a curve fitting specialized for polynomials.
Polynomial fitting is a very simple case of curve fitting. The estimated coefficients are the polynomial coefficients. They are searched by a least square estimator.
| Constructor Summary | |
|---|---|
PolynomialFitter(int degree,
DifferentiableMultivariateVectorialOptimizer optimizer)
Simple constructor. |
|
| Method Summary | |
|---|---|
double[] |
fit()
Get the polynomial fitting the weighted (x, y) points. |
| Methods inherited from class org.apache.commons.math.optimization.fitting.CurveFitter |
|---|
addObservedPoint, addObservedPoint, addObservedPoint, clearObservations, fit, fit, getObservations |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PolynomialFitter(int degree,
DifferentiableMultivariateVectorialOptimizer optimizer)
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.| Method Detail |
|---|
public double[] fit()
ConvergenceException - if the algorithm failed to converge.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||