public class ShepardInterpolation
extends java.lang.Object
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 just the thing for quick and dirty applications.
| Constructor and Description |
|---|
ShepardInterpolation(double[][] x,
double[] y)
Constructor.
|
ShepardInterpolation(double[][] x,
double[] y,
double p)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
interpolate(double... x)
Interpolate the function at given point.
|
java.lang.String |
toString() |
public ShepardInterpolation(double[][] x,
double[] y)
x - the point set.y - the function values at given points.public ShepardInterpolation(double[][] x,
double[] y,
double p)
x - the point set.y - the function values at given points.p - the parameter in the radial basis function φ(r) = r-p.