public class PolynomialLeastSquareFit extends Polynomial
coefficients| Constructor and Description |
|---|
PolynomialLeastSquareFit(double[] coeffs)
Constructs a PolynomialLeastSquareFit with the given coefficients.
|
PolynomialLeastSquareFit(double[] xd,
double[] yd,
int degree)
Constructs a PolynomialLeastSquareFit with the given order.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
computeCoefficients()
Computes the polynomial coefficients.
|
void |
fitData(double[] xd,
double[] yd)
Sets the data and updates the fit coefficients.
|
add, add, coefficient, deflate, degree, derivative, divide, divide, divideWithRemainder, evalPolynomial, evaluate, getCoefficients, integral, integral, multiply, multiply, roots, roots, subtract, subtract, toString, valueAndDerivativepublic PolynomialLeastSquareFit(double[] xd,
double[] yd,
int degree)
xd - double[]yd - double[]degree - int the degree of the polynomialpublic PolynomialLeastSquareFit(double[] coeffs)
coeffs - the coefficients