Documentation of 'org.apache.commons.math3.optimization.fitting.PolynomialFitter' Java class
PolynomialFitter
org.apache.commons.math3.optimization.fitting

Class PolynomialFitter


  • Deprecated. 
    As of 3.1 (to be removed in 4.0).

    @Deprecated
    public class PolynomialFitter
    extends CurveFitter<PolynomialFunction.Parametric>
    Polynomial fitting is a very simple case of curve fitting. The estimated coefficients are the polynomial coefficients (see the fit method).
    Since:
    2.0
    • Method Detail

      • fit

        @Deprecated
        public double[] fit()
        Deprecated. Since 3.1 (to be removed in 4.0). Please use fit(double[]) instead.
        Get the polynomial fitting the weighted (x, y) points.
        Returns:
        the coefficients of the polynomial that best fits the observed points.
        Throws:
        ConvergenceException - if the algorithm failed to converge.
      • fit

        public double[] fit(int maxEval,
                            double[] guess)
        Deprecated. 
        Get the coefficients of the polynomial fitting the weighted data points. The degree of the fitting polynomial is guess.length - 1.
        Parameters:
        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.
        Returns:
        the coefficients of the polynomial that best fits the observed points.
        Throws:
        TooManyEvaluationsException - if the number of evaluations exceeds maxEval.
        ConvergenceException - if the algorithm failed to converge.
        Since:
        3.1
      • fit

        public double[] fit(double[] guess)
        Deprecated. 
        Get the coefficients of the polynomial fitting the weighted data points. The degree of the fitting polynomial is guess.length - 1.
        Parameters:
        guess - First guess for the coefficients. They must be sorted in increasing order of the polynomial's degree.
        Returns:
        the coefficients of the polynomial that best fits the observed points.
        Throws:
        ConvergenceException - if the algorithm failed to converge.
        Since:
        3.1

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.