| Constructor | Description |
|---|---|
CubicSpline(double[] xdata,
double[] ydata) |
Constructs a natural CubicSpline interpolating function from the given data.
|
CubicSpline(double[] xdata,
double[] ydata,
double startDyDx,
double endDyDx) |
Constructs a constrained CubicSpline interpolating function from the given data.
|
| Modifier and Type | Method | Description |
|---|---|---|
double |
evaluate(double x) |
Computes the interpolated y value for a given x value.
|
Function |
firstDerivative() |
|
Function |
secondDerivative() |
|
void |
update(double[] xdata,
double[] ydata) |
Update the natural spline data and recompute the coefficients.
|
void |
update(double[] xdata,
double[] ydata,
double startDyDx,
double endDyDx) |
Update the constrained spline data and recompute the coefficients.
|
public CubicSpline(double[] xdata,
double[] ydata)
xdata - double[]ydata - double[]public CubicSpline(double[] xdata,
double[] ydata,
double startDyDx,
double endDyDx)
xdata - double[]ydata - double[]startDyDx - double derivative at 0endDyDx - double derivative at n-1public void update(double[] xdata,
double[] ydata,
double startDyDx,
double endDyDx)
xdata - ydata - public void update(double[] xdata,
double[] ydata)
xdata - ydata - public double evaluate(double x)
public Function firstDerivative()
public Function secondDerivative()