public class UniLinearIntervalsFunction extends AbstractLinearIntervalsFunction implements UnivariateFunction
EPSILON, nxmax, nymax, nzmax, searchXIndex, searchYIndex, searchZIndex, xtab, ytab, ztab
Constructor and Description |
---|
UniLinearIntervalsFunction(double[] xval,
double[] fval)
Constructor, in one dimension.
|
UniLinearIntervalsFunction(ISearchIndex algoX,
double[] fval)
Constructor, in one dimension with a search index algorithm as a parameter.
|
Modifier and Type | Method and Description |
---|---|
double[] |
getValues()
Getter for ftab in dimension 1
|
double |
value(double x)
Computation of the interpolated/extrapolated value f(x).
|
getxtab, interp1D, interp2D, isNan
public UniLinearIntervalsFunction(double[] xval, double[] fval)
xval
- : abscissas array increasingly sorted of length >= 2 (duplicates are allowed).fval
- : function values array increasingly sorted of length >= 2.public UniLinearIntervalsFunction(ISearchIndex algoX, 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.fval
- : function values array increasingly sorted of length >= 2.public double value(double x)
value
in interface UnivariateFunction
x
- : abscissa where to interpolate.public double[] getValues()
Copyright © 2019 CNES. All Rights Reserved.