|
||||||||||
| 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
public abstract class AbstractLinearIntervalsFunction
Abstract class for linear interpolation. Allows 1, 2 or 3 dimensions. Owns an optimised indices search.
| Field Summary | |
|---|---|
protected static double |
EPSILON
Numerical precision. |
protected int |
nxmax
Maximal indices in the first dimension of fthe tab in dimension 1, 2 and 3. |
protected int |
nymax
Maximal indices in the second dimension of ftab in dimension 2 and 3. |
protected int |
nzmax
Maximal indices in the third dimension of ftab in dimension 3. |
protected ISearchIndex |
searchXIndex
xtab used for search and satisfies condition from SearchIndex. |
protected ISearchIndex |
searchYIndex
ytab used for search and satisfies condition from SearchIndex. |
protected ISearchIndex |
searchZIndex
ztab used for search and satisfies condition from SearchIndex. |
protected double[] |
xtab
Abscissas array. |
protected double[] |
ytab
Ordinates array. |
protected double[] |
ztab
Heights array. |
| Constructor Summary | |
|---|---|
AbstractLinearIntervalsFunction()
|
|
| Method Summary | |
|---|---|
double[] |
getxtab()
Gets xtab |
protected double |
interp1D(double f0,
double f1,
double x0,
double x1,
double x)
Interpolates in 1D. |
protected double |
interp2D(double fx0y0,
double fx1y0,
double fx0y1,
double fx1y1,
double x0,
double x1,
double y0,
double y1,
double x,
double y)
Interpolates in 2D by 2-successives 1D interpolation. |
protected boolean |
isNan(double[] val)
Tests if an array of double contains NaN values. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final double EPSILON
protected int nxmax
protected int nymax
protected int nzmax
protected double[] xtab
protected double[] ytab
protected double[] ztab
protected ISearchIndex searchXIndex
protected ISearchIndex searchYIndex
protected ISearchIndex searchZIndex
| Constructor Detail |
|---|
public AbstractLinearIntervalsFunction()
| Method Detail |
|---|
protected double interp1D(double f0,
double f1,
double x0,
double x1,
double x)
f0 - : f(x0)f1 - : f(x1)x0 - : lower boundx1 - : upper boundx - : the point where to do the interpolation
protected double interp2D(double fx0y0,
double fx1y0,
double fx0y1,
double fx1y1,
double x0,
double x1,
double y0,
double y1,
double x,
double y)
fx0y0 - : f(x0,y0): lower point for the 1st interpolation (the lower bound for the 2nd interpolation).fx1y0 - : f(x1,y0): upper point for the 1st interpolation (the lower bound for the 2nd interpolation).fx0y1 - : f(x0,y1): lower point for the 2nd interpolation (the upper bound for the 2nd interpolation).fx1y1 - : f(x1,y1): upper point for the 2nd interpolation (the upper bound for the 2nd interpolation).x0 - : lower bound for the first directionx1 - : upper bound for the first directiony0 - : lower bound for the second directiony1 - : upper bound for the second directionx - : the point where to do the interpolation in the 1st directiony - : the point where to do the interpolation in the 2nd direction
protected boolean isNan(double[] val)
val - the array
public double[] getxtab()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||