Package jahuwaldt.tools.math
Class PolynomialFit
- java.lang.Object
-
- jahuwaldt.tools.math.PolynomialFit
-
- All Implemented Interfaces:
BasisFunction
public class PolynomialFit extends java.lang.Object implements BasisFunction
A basis function for generating a polynomial curve fits of degree p[].length-1 with coefficients in the array p[]. This is intended for use with ModelData.fit().Modified by: Joseph A. Huwaldt
- Version:
- February 12, 2014
- Author:
- Joseph A. Huwaldt Date: October 21, 2002
-
-
Constructor Summary
Constructors Constructor Description PolynomialFit()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
func(double x, double[] p)
Basis function that takes an input x and calculates the parameters of the polynomial function placing them in p[].int
getMinNumCoef()
Method that returns the minimum number of coefficients allowed by a polynomial (method returns a value of 2 corresponding to a degree=1 polynomial).
-
-
-
Constructor Detail
-
PolynomialFit
public PolynomialFit()
-
-
Method Detail
-
getMinNumCoef
public int getMinNumCoef()
Method that returns the minimum number of coefficients allowed by a polynomial (method returns a value of 2 corresponding to a degree=1 polynomial).- Specified by:
getMinNumCoef
in interfaceBasisFunction
-
func
public void func(double x, double[] p)
Basis function that takes an input x and calculates the parameters of the polynomial function placing them in p[].- Specified by:
func
in interfaceBasisFunction
-
-