class BicubicSplineFunction extends java.lang.Object implements BivariateFunction
| Modifier and Type | Field and Description |
|---|---|
private double[][] |
a
Coefficients
|
private static short |
N
Number of points.
|
private BivariateFunction |
partialDerivativeX
First partial derivative along x.
|
private BivariateFunction |
partialDerivativeXX
Second partial derivative along x.
|
private BivariateFunction |
partialDerivativeXY
Second crossed partial derivative.
|
private BivariateFunction |
partialDerivativeY
First partial derivative along y.
|
private BivariateFunction |
partialDerivativeYY
Second partial derivative along y.
|
| Constructor and Description |
|---|
BicubicSplineFunction(double[] coeff)
Simple constructor.
|
BicubicSplineFunction(double[] coeff,
boolean initializeDerivatives)
Simple constructor.
|
| Modifier and Type | Method and Description |
|---|---|
private double |
apply(double[] pX,
double[] pY,
double[][] coeff)
Compute the value of the bicubic polynomial.
|
BivariateFunction |
partialDerivativeX() |
BivariateFunction |
partialDerivativeXX() |
BivariateFunction |
partialDerivativeXY() |
BivariateFunction |
partialDerivativeY() |
BivariateFunction |
partialDerivativeYY() |
double |
value(double x,
double y)
Compute the value for the function.
|
private static final short N
private final double[][] a
private final BivariateFunction partialDerivativeX
private final BivariateFunction partialDerivativeY
private final BivariateFunction partialDerivativeXX
private final BivariateFunction partialDerivativeYY
private final BivariateFunction partialDerivativeXY
public BicubicSplineFunction(double[] coeff)
coeff - Spline coefficients.public BicubicSplineFunction(double[] coeff,
boolean initializeDerivatives)
coeff - Spline coefficients.initializeDerivatives - Whether to initialize the internal data
needed for calling any of the methods that compute the partial derivatives
this function.public double value(double x,
double y)
value in interface BivariateFunctionx - Abscissa for which the function value should be computed.y - Ordinate for which the function value should be computed.private double apply(double[] pX,
double[] pY,
double[][] coeff)
pX - Powers of the x-coordinate.pY - Powers of the y-coordinate.coeff - Spline coefficients.public BivariateFunction partialDerivativeX()
x.public BivariateFunction partialDerivativeY()
y.public BivariateFunction partialDerivativeXX()
x.public BivariateFunction partialDerivativeYY()
y.public BivariateFunction partialDerivativeXY()
Copyright (c) 2003-2015 Apache Software Foundation