AkimaSplineInterpolator as the
underlying one-dimensional interpolator, which requires 5 sample points;
insufficient data will raise an exception when the
value method is called.
| Modifier and Type | Field and Description |
|---|---|
| private final double[][] | fval
Set of cubic splines patching the whole data grid |
| private static final int | MIN_NUM_POINTS
The minimum number of points that are needed to compute the function. |
| private final double[] | xval
Samples x-coordinates |
| private final double[] | yval
Samples y-coordinates |
| Access | Constructor and Description |
|---|---|
| public | PiecewiseBicubicSplineInterpolatingFunction(double[]
Sample values of the x-coordinate, in increasing order. x, double[] Sample values of the y-coordinate, in increasing order. y, double[][] Values of the function on every grid point. the expected number
of elements. f)
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if (x, y) is a valid point.First coordinate. x, double Second coordinate. y)Indicates whether a point is within the interpolation range. |
| private int | Returns: the index inval corresponding to the interval containing
c.Coordinate. c, double[] Coordinate samples. val, int how far back from found value to offset for querying offset, int total number of elements forward from beginning that will be
queried count)
|
| public double | value(double
Abscissa for which the function value should be computed. x, double Ordinate for which the function value should be computed. y)Implements org. Compute the value for the function. |
| fval | back to summary |
|---|---|
| private final double[][] fval Set of cubic splines patching the whole data grid | |
| MIN_NUM_POINTS | back to summary |
|---|---|
| private static final int MIN_NUM_POINTS The minimum number of points that are needed to compute the function. | |
| xval | back to summary |
|---|---|
| private final double[] xval Samples x-coordinates | |
| yval | back to summary |
|---|---|
| private final double[] yval Samples y-coordinates | |
| PiecewiseBicubicSplineInterpolatingFunction | back to summary |
|---|---|
public PiecewiseBicubicSplineInterpolatingFunction(double[] x, double[] y, double[][] f) throws DimensionMismatchException, NullArgumentException, NoDataException, NonMonotonicSequenceException
| |
| isValidPoint | back to summary |
|---|---|
| public boolean isValidPoint(double x, double y) Indicates whether a point is within the interpolation range.
| |
| searchIndex | back to summary |
|---|---|
private int searchIndex(double c, double[] val, int offset, int count)
| |
| value | back to summary |
|---|---|
| public double value(double x, double y) throws OutOfRangeException Implements org. Doc from org. Compute the value for the function.
| |