public class LinearInterpolation extends AbstractInterpolation
Constructor and Description |
---|
LinearInterpolation(double[] x,
double[] y)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
rawinterp(int j,
double x)
Subclasses provide this as the actual interpolation method.
|
java.lang.String |
toString() |
interpolate, search
public LinearInterpolation(double[] x, double[] y)
public double rawinterp(int j, double x)
AbstractInterpolation
rawinterp
in class AbstractInterpolation
j
- 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 valuepublic java.lang.String toString()
toString
in class java.lang.Object