public class NearestGridder3 extends java.lang.Object implements Gridder3
Constructor and Description |
---|
NearestGridder3(float[] f,
float[] x1,
float[] x2,
float[] x3)
Constructs a nearest neighbor gridder with specified known samples.
|
Modifier and Type | Method and Description |
---|---|
void |
computeDistancesAndValues(Sampling s1,
Sampling s2,
Sampling s3,
float[][][] d,
float[][][] g)
Computes nearest neighbor distances and values.
|
float[][][] |
grid(Sampling s1,
Sampling s2,
Sampling s3)
Computes gridded sample values from the known sample values.
|
void |
setScattered(float[] f,
float[] x1,
float[] x2,
float[] x3)
Sets the known (scattered) samples.
|
public NearestGridder3(float[] f, float[] x1, float[] x2, float[] x3)
f
- array of known sample values f(x1,x2,x3).x1
- array of known sample x1 coordinates.x2
- array of known sample x2 coordinates.x3
- array of known sample x3 coordinates.public void computeDistancesAndValues(Sampling s1, Sampling s2, Sampling s3, float[][][] d, float[][][] g)
s1
- sampling for coordinate x1.s2
- sampling for coordinate x2.s3
- sampling for coordinate x3.d
- array of distances to nearest known samples.g
- array of nearest known sample values.public void setScattered(float[] f, float[] x1, float[] x2, float[] x3)
Gridder3
setScattered
in interface Gridder3
f
- array of sample values f(x1,x2,x3).x1
- array of sample x1 coordinates.x2
- array of sample x2 coordinates.x3
- array of sample x3 coordinates.public float[][][] grid(Sampling s1, Sampling s2, Sampling s3)
Gridder3