Additional top-level class in compilation unit: BicubicSplineFunction.
Deprecated
as of 3.4 replaced by
org.
| Modifier and Type | Field and Description |
|---|---|
| private static final double[][] | AINV
Matrix to compute the spline coefficients from the function values and function derivatives values |
| private static final int | NUM_COEFF
Number of coefficients. |
| private final BivariateFunction[][][] | partialDerivatives
Partial derivatives. |
| private final BicubicSplineFunction[][] | splines
Set of cubic splines patching the whole data grid |
| private final double[] | xval
Samples x-coordinates |
| private final double[] | yval
Samples y-coordinates |
| Access | Constructor and Description |
|---|---|
| public | BicubicSplineInterpolatingFunction(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. f, double[][] Values of the partial derivative of function with respect
to x on every grid point. dFdX, double[][] Values of the partial derivative of function with respect
to y on every grid point. dFdY, double[][] Values of the cross partial derivative of function on
every grid point. d2FdXdY)
|
| public | BicubicSplineInterpolatingFunction(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. f, double[][] Values of the partial derivative of function with respect
to x on every grid point. dFdX, double[][] Values of the partial derivative of function with respect
to y on every grid point. dFdY, double[][] Values of the cross partial derivative of function on
every grid point. d2FdXdY, boolean Whether to initialize the internal data
needed for calling any of the methods that compute the partial derivatives
this function. initializeDerivatives)
|
| Modifier and Type | Method and Description |
|---|---|
| private double[] | Returns: the spline coefficients.List of function values and function partial derivatives
values. beta)Compute the spline coefficients from the list of function values and function partial derivatives values at the four corners of a grid element. |
| 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 double | Returns: the value at point (x, y) of the selected partial derivative.First index in which, double partialDerivatives.x-coordinate. x, double y-coordinate. y)
|
| public double | Returns: the value at point (x, y) of the first partial derivative with respect to x.x-coordinate. x, double y-coordinate. y)
|
| public double | Returns: the value at point (x, y) of the second partial derivative with respect to x.x-coordinate. x, double y-coordinate. y)
|
| public double | Returns: the value at point (x, y) of the second partial cross-derivative.x-coordinate. x, double y-coordinate. y)
|
| public double | Returns: the value at point (x, y) of the first partial derivative with respect to y.x-coordinate. x, double y-coordinate. y)
|
| public double | Returns: the value at point (x, y) of the second partial derivative with respect to y.x-coordinate. x, double y-coordinate. y)
|
| private int | Returns: the index inval corresponding to the interval
containing c.Coordinate. c, double[] Coordinate samples. val)
|
| 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. |
| AINV | back to summary |
|---|---|
| private static final double[][] AINV Matrix to compute the spline coefficients from the function values and function derivatives values | |
| NUM_COEFF | back to summary |
|---|---|
| private static final int NUM_COEFF Number of coefficients. | |
| partialDerivatives | back to summary |
|---|---|
| private final BivariateFunction[][][] partialDerivatives Partial derivatives. The value of the first index determines the kind of derivatives: 0 = first partial derivatives wrt x 1 = first partial derivatives wrt y 2 = second partial derivatives wrt x 3 = second partial derivatives wrt y 4 = cross partial derivatives | |
| splines | back to summary |
|---|---|
| private final BicubicSplineFunction[][] splines Set of cubic splines patching the whole data grid | |
| xval | back to summary |
|---|---|
| private final double[] xval Samples x-coordinates | |
| yval | back to summary |
|---|---|
| private final double[] yval Samples y-coordinates | |
| BicubicSplineInterpolatingFunction | back to summary |
|---|---|
public BicubicSplineInterpolatingFunction(double[] x, double[] y, double[][] f, double[][] dFdX, double[][] dFdY, double[][] d2FdXdY) throws DimensionMismatchException, NoDataException, NonMonotonicSequenceException
| |
| BicubicSplineInterpolatingFunction | back to summary |
|---|---|
public BicubicSplineInterpolatingFunction(double[] x, double[] y, double[][] f, double[][] dFdX, double[][] dFdY, double[][] d2FdXdY, boolean initializeDerivatives) throws DimensionMismatchException, NoDataException, NonMonotonicSequenceException
| |
| computeSplineCoefficients | back to summary |
|---|---|
| private double[] computeSplineCoefficients(double[] beta) Compute the spline coefficients from the list of function values and function partial derivatives values at the four corners of a grid element. They must be specified in the following order:
| |
| isValidPoint | back to summary |
|---|---|
| public boolean isValidPoint(double x, double y) Indicates whether a point is within the interpolation range.
| |
| partialDerivative | back to summary |
|---|---|
private double partialDerivative(int which, double x, double y) throws OutOfRangeException
| |
| partialDerivativeX | back to summary |
|---|---|
public double partialDerivativeX(double x, double y) throws OutOfRangeException
| |
| partialDerivativeXX | back to summary |
|---|---|
public double partialDerivativeXX(double x, double y) throws OutOfRangeException
| |
| partialDerivativeXY | back to summary |
|---|---|
public double partialDerivativeXY(double x, double y) throws OutOfRangeException
| |
| partialDerivativeY | back to summary |
|---|---|
public double partialDerivativeY(double x, double y) throws OutOfRangeException
| |
| partialDerivativeYY | back to summary |
|---|---|
public double partialDerivativeYY(double x, double y) throws OutOfRangeException
| |
| searchIndex | back to summary |
|---|---|
private int searchIndex(double c, double[] val)
| |
| value | back to summary |
|---|---|
| public double value(double x, double y) throws OutOfRangeException Implements org. Doc from org. Compute the value for the function.
| |