public class BiLinearIntervalsFunction extends AbstractLinearIntervalsFunction implements BivariateFunction
EPSILON, nxmax, nymax, nzmax, searchXIndex, searchYIndex, searchZIndex, xtab, ytab, ztab
Constructor and Description |
---|
BiLinearIntervalsFunction(double[] xval,
double[] yval,
double[][] fval)
Constructor, in two dimensions.
|
BiLinearIntervalsFunction(ISearchIndex algoX,
ISearchIndex algoY,
double[][] fval)
Constructor, in two dimensions with a search index algorithm as a parameter.
|
Modifier and Type | Method and Description |
---|---|
double[][] |
getValues()
Gets ftab in dimension 2
|
double[] |
getytab()
Gets ytab
|
double |
value(double x,
double y)
Computation of the interpolated/extrapolated value f(x,y).
|
getxtab, interp1D, interp2D, isNan
public BiLinearIntervalsFunction(double[] xval, double[] yval, double[][] fval)
xval
- : abscissas array increasingly sorted of length >= 2 (duplicates are allowed).yval
- : ordinates array increasingly sorted of length >= 2 (duplicates are allowed).fval
- : function values array increasingly sorted of length >= 2.public BiLinearIntervalsFunction(ISearchIndex algoX, ISearchIndex algoY, 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.fval
- : function values array increasingly sorted of length >= 2.public double value(double x, double y)
value
in interface BivariateFunction
x
- : abscissa where to interpolate.y
- : ordinate where to interpolate.public double[] getytab()
public double[][] getValues()
Copyright © 2020 CNES. All rights reserved.