|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math3.analysis.interpolation.AbstractLinearIntervalsFunction
org.apache.commons.math3.analysis.interpolation.BiLinearIntervalsFunction
public class BiLinearIntervalsFunction
Implements the representation of a linear function in dimension 2. If double[] are given to the constructor, they should be sorted by increasing order (duplicates are allowed). No test to ensure that will be made, therefore, if these tab are not correctly sorted, results can be totally wrong. No exception will be thrown.
Field Summary |
---|
Fields inherited from class org.apache.commons.math3.analysis.interpolation.AbstractLinearIntervalsFunction |
---|
EPSILON, nxmax, nymax, nzmax, searchXIndex, searchYIndex, searchZIndex, xtab, ytab, ztab |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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). |
Methods inherited from class org.apache.commons.math3.analysis.interpolation.AbstractLinearIntervalsFunction |
---|
getxtab, interp1D, interp2D, isNan |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |