public class NearestGridder2 extends java.lang.Object implements Gridder2
Constructor and Description |
---|
NearestGridder2(float[] f,
float[] x1,
float[] x2)
Constructs a nearest neighbor gridder with specified known samples.
|
Modifier and Type | Method and Description |
---|---|
void |
computeDistancesAndValues(Sampling s1,
Sampling s2,
float[][] d,
float[][] g)
Computes nearest neighbor distances and values.
|
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.
|
public NearestGridder2(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 computeDistancesAndValues(Sampling s1, Sampling s2, float[][] d, float[][] g)
s1
- sampling for coordinate x1.s2
- sampling for coordinate x2.d
- array of distances to nearest known samples.g
- array of nearest known sample values.public void setScattered(float[] f, float[] x1, float[] x2)
Gridder2
setScattered
in interface Gridder2
f
- array of sample values f(x1,x2).x1
- array of sample x1 coordinates.x2
- array of sample x2 coordinates.