|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math.analysis.interpolation.BicubicSplineInterpolatingFunction
public class BicubicSplineInterpolatingFunction
Function that implements the bicubic spline interpolation.
Field Summary | |
---|---|
private static double[][] |
AINV
Matrix to compute the spline coefficients from the function values and function derivatives values |
private BicubicSplineFunction[][] |
splines
Set of cubic splines pacthing the whole data grid |
private double[] |
xval
Samples x-coordinates |
private double[] |
yval
Samples y-coordinates |
Constructor Summary | |
---|---|
BicubicSplineInterpolatingFunction(double[] x,
double[] y,
double[][] z,
double[][] dZdX,
double[][] dZdY,
double[][] dZdXdY)
|
Method 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. |
private int |
searchIndex(double c,
double[] val)
|
double |
value(double x,
double y)
Compute the value for the function. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final double[][] AINV
private final double[] xval
private final double[] yval
private final BicubicSplineFunction[][] splines
Constructor Detail |
---|
public BicubicSplineInterpolatingFunction(double[] x, double[] y, double[][] z, double[][] dZdX, double[][] dZdY, double[][] dZdXdY) throws DimensionMismatchException
x
- Sample values of the x-coordinate, in increasing ordery
- Sample values of the y-coordinate, in increasing orderz
- Values of the function on every grid pointdZdX
- Values of the partial derivative of function with respect
to x on every grid pointdZdY
- Values of the partial derivative of function with respect
to y on every grid pointdZdXdY
- Values of the cross partial derivative of function on
every grid point
DimensionMismatchException
- if the various arrays do not contain
the expected number of elements.
java.lang.IllegalArgumentException
- if x
or y
are not strictly
increasing.Method Detail |
---|
public double value(double x, double y)
value
in interface BivariateRealFunction
x
- abscissa for which the function value should be computedy
- ordinate for which the function value should be computed
private int searchIndex(double c, double[] val)
c
- coordinateval
- coordinate samples
val
corresponding to the interval
containing c
, or -1
if c
is out of the
range defined by the end values of val
private double[] computeSplineCoefficients(double[] beta)
beta
- List of function values and function partial derivatives
values
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |