public class ShepardInterpolation1D extends java.lang.Object implements Interpolation
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 |
|---|
ShepardInterpolation1D(double[] x,
double[] y)
Constructor.
|
ShepardInterpolation1D(double[] x,
double[] y,
double p)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
interpolate(double x)
Given a value x, return an interpolated value.
|
java.lang.String |
toString() |
public ShepardInterpolation1D(double[] x,
double[] y)
x - the point set.y - the function values at given points.public ShepardInterpolation1D(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.public double interpolate(double x)
Interpolationinterpolate in interface Interpolationpublic java.lang.String toString()
toString in class java.lang.Object