Documentation of 'org.apache.commons.math3.fitting.AbstractCurveFitter' Java class
AbstractCurveFitter
org.apache.commons.math3.fitting

Class AbstractCurveFitter

  • Direct Known Subclasses:
    GaussianCurveFitter, HarmonicCurveFitter, PolynomialCurveFitter, SimpleCurveFitter


    public abstract class AbstractCurveFitter
    extends java.lang.Object
    Base class that contains common code for fitting parametric univariate real functions y = f(pi;x), where x is the independent variable and the pi are the parameters.
    A fitter will find the optimal values of the parameters by fitting the curve so it remains very close to a set of N observed points (xk, yk), 0 <= k < N.
    An algorithm usually performs the fit by finding the parameter values that minimizes the objective function
    
      ∑yk - f(xk)2,
     
    which is actually a least-squares problem. This class contains boilerplate code for calling the fit(Collection) method for obtaining the parameters. The problem setup, such as the choice of optimization algorithm for fitting a specific function is delegated to subclasses.
    Since:
    3.3
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      double[] fit(java.util.Collection<WeightedObservedPoint> points)
      Fits a curve.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractCurveFitter

        public AbstractCurveFitter()
    • Method Detail

      • fit

        public double[] fit(java.util.Collection<WeightedObservedPoint> points)
        Fits a curve. This method computes the coefficients of the curve that best fit the sample of observed points.
        Parameters:
        points - Observations.
        Returns:
        the fitted parameters.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.