math.approximations
Class PolynomialLeastSquareFit

java.lang.Object
  extended by math.approximations.Polynomial
      extended by math.approximations.PolynomialLeastSquareFit
All Implemented Interfaces:
Function

public class PolynomialLeastSquareFit
extends Polynomial

Polynomial least square fit without any error estimation. See Object Oriented Implementation of Numerical Methods by Didier H. Besset for fitting with error estimation.

Author:
Wolfgang Christian.

Constructor Summary
PolynomialLeastSquareFit(double[] xd, double[] yd, int degree)
          Constructs a PolynomialLeastSquareFit with the given order.
 
Method Summary
 
Methods inherited from class math.approximations.Polynomial
add, add, coefficient, deflate, degree, derivative, divide, divide, divideWithRemainder, evalPolynomial, evaluate, getCoefficients, integral, integral, multiply, multiply, roots, roots, subtract, subtract, toString, valueAndDerivative
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PolynomialLeastSquareFit

public PolynomialLeastSquareFit(double[] xd,
                                double[] yd,
                                int degree)
Constructs a PolynomialLeastSquareFit with the given order.

Parameters:
xd - double[]
yd - double[]
degree - int the degree of the polynomial