|
||||||||||
| 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.TriLinearIntervalsFunction
public class TriLinearIntervalsFunction
Implements the representation of a linear function in dimension 2. If double[] are given to the constructor, they should be sorted by increasing order. 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 | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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). |
| Methods inherited from class org.apache.commons.math3.analysis.interpolation.AbstractLinearIntervalsFunction |
|---|
getxtab, interp1D, interp2D |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public double value(double x,
double y,
double z)
value in interface TrivariateFunctionx - : abscissa where to interpolate.y - : ordinate where to interpolate.z - : height where to interpolate.
public double[] getytab()
public double[] getztab()
public double[][][] getValues()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||