public abstract class AbstractInterpolation extends java.lang.Object implements Interpolation
| Constructor and Description |
|---|
AbstractInterpolation(double[] x,
double[] y)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
interpolate(double x)
Given a value x, return an interpolated value.
|
abstract double |
rawinterp(int jlo,
double x)
Subclasses provide this as the actual interpolation method.
|
int |
search(double x)
Given a value x, return a value j such that x is (insofar as possible)
centered in the subrange xx[j..j+m-1], where xx is the stored data.
|
public AbstractInterpolation(double[] x,
double[] y)
public double interpolate(double x)
Interpolationinterpolate in interface Interpolationpublic int search(double x)
public abstract double rawinterp(int jlo,
double x)
jlo - the value jlo is such that x is (insofar as possible)
centered in the subrange xx[j..j+m-1], where xx is the stored data.x - interpolate at this value