public CubicSpline(double[] xdata,
double[] ydata)
Constructs a CubicSpline interpolating function from the given data.
X data array must be sorted in increasing or decreasing value. The checkSorting method in the
Util package can be used to check the sorting of an array.
Parameters:
xdata - double[]
ydata - double[]
Method Detail
update
public void update(double[] xdata,
double[] ydata)
evaluate
public double evaluate(double x)
Computes the interpolated y value for a given x value.