| Modifier and Type | Field and Description |
|---|---|
protected double[] |
hornerCoef
Polynomial coefficients.
|
| Constructor and Description |
|---|
LagrangeInterpolator(double[] xdata,
double[] ydata)
Constructs a Lagrange interpolating polynomial from the given data using Horner's expansion for
the representation of the polynomial.
|
| Modifier and Type | Method and Description |
|---|---|
double |
evaluate(double x)
Computes the interpolated y value for a given x value.
|
double[] |
getCoefficients()
Gets the polynomial coefficients c in
c[0] + c[1] * x + c[2] * x^2 + ....
|
public LagrangeInterpolator(double[] xdata,
double[] ydata)
xdata - double[]ydata - double[]public double evaluate(double x)
public double[] getCoefficients()