FunctionKnownPolynomialpublic class PolynomialLeastSquareFit extends Polynomial
coefficients| Constructor | 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 | Description |
|---|---|---|
protected void |
computeCoefficients() |
Computes the polynomial coefficients.
|
void |
fitData(double[] xd,
double[] yd) |
Sets the data and updates the fit coefficients.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, add, coefficient, deflate, degree, derivative, divide, divide, divideWithRemainder, evalPolynomial, evaluate, getCoefficients, integral, integral, multiply, multiply, roots, rootsReal, 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