Class PolynomialFitter

java.lang.Object
xal.tools.math.fnc.poly.PolynomialFitter

public class PolynomialFitter extends Object
Class representing an uni-variate real polynomial used for the expressed purpose of fitting a function over an interval. Thus, this class is a polynomial because it is a polynomial fit to a given function. It is then possible to specify the domain over which the fit is accurate. If this domain is specified than any attempt to evaluate the polynomial outside this range results in an exception.
Since:
Sep 24, 2015
Author:
Christopher K. Allen
  • Constructor Details

    • PolynomialFitter

      public PolynomialFitter(int nDegree, RealFunctionSamples fncSmps)
      Initializing constructor for PolynomialFitter. The given data is used to create a least-squares fit up to the given polynomial order.
      Parameters:
      nDegree - degree of the polynomial used to fit the data
      fncSmps - data of function samples
      Since:
      Sep 25, 2015 by Christopher K. Allen