public class ShepardInterpolation2D extends java.lang.Object implements Interpolation2D
An example of such φ is φ(r) = r-p with
(typically) 1 < p ≤ 3.
Shepard interpolation is rarely as accurate as the well-tuned application of other radial basis functions. However, it is simple, fast, and often jut the thing for quick and dirty applications.
| Constructor and Description |
|---|
ShepardInterpolation2D(double[] x1,
double[] x2,
double[] y)
Constructor.
|
ShepardInterpolation2D(double[] x1,
double[] x2,
double[] y,
double p)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
interpolate(double x1,
double x2)
Interpolate the data at a given 2-dimensional point.
|
java.lang.String |
toString() |
public ShepardInterpolation2D(double[] x1,
double[] x2,
double[] y)
x1 - the 1st dimension of data points.x2 - the 2nd dimension of data points.y - the function values.public ShepardInterpolation2D(double[] x1,
double[] x2,
double[] y,
double p)
x1 - the 1st dimension of data points.x2 - the 2nd dimension of data points.y - the function values.p - the parameter in the radial basis function φ(r) = r-p.public double interpolate(double x1,
double x2)
Interpolation2Dinterpolate in interface Interpolation2Dpublic java.lang.String toString()
toString in class java.lang.Object