public class SibsonGridder2 extends SibsonInterpolator2 implements Gridder2
Gridder2
.
It otherwise adds no significant functionality to its base class
SibsonInterpolator2
.SibsonInterpolator2.IndexWeight, SibsonInterpolator2.Method
Constructor and Description |
---|
SibsonGridder2(float[] f,
float[] x1,
float[] x2)
Constructs a gridder with specified known (scattered) samples.
|
Modifier and Type | Method and Description |
---|---|
float[][] |
grid(Sampling s1,
Sampling s2)
Computes gridded sample values from the known sample values.
|
void |
setScattered(float[] f,
float[] x1,
float[] x2)
Sets the known (scattered) samples to be interpolated.
|
void |
setSmooth(boolean smooth)
Sets the smoothness of the Sibson interpolant.
|
getIndexWeights, interpolate, interpolate, setBounds, setBounds, setGradientPower, setGradients, setNullValue, setSamples, useConvexHullBounds, validate, validate
public SibsonGridder2(float[] f, float[] x1, float[] x2)
f
- array of known sample values f(x1,x2).x1
- array of known sample x1 coordinates.x2
- array of known sample x2 coordinates.public void setSmooth(boolean smooth)
If false (the default), the interpolant is C1 everywhere except at the known sample points, where it is C0, with a discontinuous derivative. For this default, interpolated values are guaranteed to be within the range of known sample values.
If true, the interpolant is smoother, C1 everywhere, but interpolated values may be outside the range of known sample values.
smooth
- true, for C1 everywhere; false, for C0 at known samples.SibsonInterpolator2.setGradientPower(double)
public void setScattered(float[] f, float[] x1, float[] x2)
setScattered
in interface Gridder2
f
- array of sample values f(x1,x2).x1
- array of sample x1 coordinates.x2
- array of sample x2 coordinates.