public class TriLinearIntervalsFunction extends AbstractLinearIntervalsFunction implements TrivariateFunction
EPSILON, nxmax, nymax, nzmax, searchXIndex, searchYIndex, searchZIndex, xtab, ytab, ztab
Constructor and Description |
---|
TriLinearIntervalsFunction(double[] xval,
double[] yval,
double[] zval,
double[][][] fval)
Constructor, in three dimensions.
|
TriLinearIntervalsFunction(ISearchIndex algoX,
ISearchIndex algoY,
ISearchIndex algoZ,
double[][][] fval)
Constructor, in three dimensions with a search index algorithm as a parameter.
|
Modifier and Type | Method and Description |
---|---|
double[][][] |
getValues()
Gets ftab in dimension 3
|
double[] |
getytab()
Gets ytab
|
double[] |
getztab()
Gets ztab
|
double |
value(double x,
double y,
double z)
Computation of the interpolated/extrapolated value f(x,y,z).
|
getxtab, interp1D, interp2D, isNan
public TriLinearIntervalsFunction(double[] xval, double[] yval, double[] zval, double[][][] fval)
xval
- : abscissas array increasingly sorted of length >= 2 (duplicates are allowed).yval
- : ordinates array increasingly sorted of length >= 2 (duplicates are allowed).zval
- : heights array increasingly sorted of length >= 2 (duplicates are allowed).fval
- : function values array increasingly sorted of length >= 2.public TriLinearIntervalsFunction(ISearchIndex algoX, ISearchIndex algoY, ISearchIndex algoZ, double[][][] fval)
algoX
- : an instance of a class implemented ISearchIndex, containing xtab.
When it has been created, it should have been with a sorted tab.algoY
- : an instance of a class implemented ISearchIndex, containing ytab.
When it has been created, it should have been with a sorted tab.algoZ
- : an instance of a class implemented ISearchIndex, containing ztab.
When it has been created, it should have been with a sorted tab.fval
- : function values array increasingly sorted of length >= 2.public double value(double x, double y, double z)
value
in interface TrivariateFunction
x
- : abscissa where to interpolate.y
- : ordinate where to interpolate.z
- : height where to interpolate.public double[] getytab()
public double[] getztab()
public double[][][] getValues()
Copyright © 2021 CNES. All rights reserved.