Package xal.tools.math.fnc.poly
Class PolynomialFitter
java.lang.Object
xal.tools.math.fnc.poly.PolynomialFitter
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 Summary
ConstructorsConstructorDescriptionPolynomialFitter
(int nDegree, RealFunctionSamples fncSmps) Initializing constructor for PolynomialFitter. -
Method Summary
-
Constructor Details
-
PolynomialFitter
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 datafncSmps
- data of function samples- Since:
- Sep 25, 2015 by Christopher K. Allen
-