Top Description Fields Constructors Methods
org.apache.commons.math3.analysis.interpolation

pack-priv Class BicubicSplineFunction

Located in compilation unit of org.apache.commons.math3.analysis.interpolation.BicubicSplineInterpolatingFunction.

extends Object
implements BivariateFunction
Class Inheritance
All Implemented Interfaces
org.apache.commons.math3.analysis.BivariateFunction

2D-spline function.

Field Summary

Modifier and TypeField and Description
private final double[][]
a

Coefficients

private static final short
N

Number of points.

private final BivariateFunction
partialDerivativeX

First partial derivative along x.

private final BivariateFunction
partialDerivativeXX

Second partial derivative along x.

private final BivariateFunction
partialDerivativeXY

Second crossed partial derivative.

private final BivariateFunction
partialDerivativeY

First partial derivative along y.

private final BivariateFunction
partialDerivativeYY

Second partial derivative along y.

Constructor Summary

AccessConstructor and Description
pack-priv
BicubicSplineFunction(double[]
Spline coefficients.
coeff
)

Simple constructor.

pack-priv
BicubicSplineFunction(double[]
Spline coefficients.
coeff
,
boolean
Whether to initialize the internal data needed for calling any of the methods that compute the partial derivatives this function.
initializeDerivatives
)

Simple constructor.

Method Summary

Modifier and TypeMethod and Description
private double

Returns:

the interpolated value.
apply
(double[]
Powers of the x-coordinate.
pX
,
double[]
Powers of the y-coordinate.
pY
,
double[][]
Spline coefficients.
coeff
)

Compute the value of the bicubic polynomial.

public BivariateFunction

Returns:

the partial derivative wrt x.
partialDerivativeX
()

public BivariateFunction

Returns:

the second partial derivative wrt x.
partialDerivativeXX
()

public BivariateFunction

Returns:

the second partial cross-derivative.
partialDerivativeXY
()

public BivariateFunction

Returns:

the partial derivative wrt y.
partialDerivativeY
()

public BivariateFunction

Returns:

the second partial derivative wrt y.
partialDerivativeYY
()

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.apache.commons.math3.analysis.BivariateFunction.value.

Compute the value for the function.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

aback to summary
private final double[][] a

Coefficients

Nback to summary
private static final short N

Number of points.

partialDerivativeXback to summary
private final BivariateFunction partialDerivativeX

First partial derivative along x.

partialDerivativeXXback to summary
private final BivariateFunction partialDerivativeXX

Second partial derivative along x.

partialDerivativeXYback to summary
private final BivariateFunction partialDerivativeXY

Second crossed partial derivative.

partialDerivativeYback to summary
private final BivariateFunction partialDerivativeY

First partial derivative along y.

partialDerivativeYYback to summary
private final BivariateFunction partialDerivativeYY

Second partial derivative along y.

Constructor Detail

BicubicSplineFunctionback to summary
pack-priv BicubicSplineFunction(double[] coeff)

Simple constructor.

Parameters
coeff:double[]

Spline coefficients.

BicubicSplineFunctionback to summary
pack-priv BicubicSplineFunction(double[] coeff, boolean initializeDerivatives)

Simple constructor.

Parameters
coeff:double[]

Spline coefficients.

initializeDerivatives:boolean

Whether to initialize the internal data needed for calling any of the methods that compute the partial derivatives this function.

Method Detail

applyback to summary
private double apply(double[] pX, double[] pY, double[][] coeff)

Compute the value of the bicubic polynomial.

Parameters
pX:double[]

Powers of the x-coordinate.

pY:double[]

Powers of the y-coordinate.

coeff:double[][]

Spline coefficients.

Returns:double

the interpolated value.

partialDerivativeXback to summary
public BivariateFunction partialDerivativeX()
Returns:BivariateFunction

the partial derivative wrt x.

partialDerivativeXXback to summary
public BivariateFunction partialDerivativeXX()
Returns:BivariateFunction

the second partial derivative wrt x.

partialDerivativeXYback to summary
public BivariateFunction partialDerivativeXY()
Returns:BivariateFunction

the second partial cross-derivative.

partialDerivativeYback to summary
public BivariateFunction partialDerivativeY()
Returns:BivariateFunction

the partial derivative wrt y.

partialDerivativeYYback to summary
public BivariateFunction partialDerivativeYY()
Returns:BivariateFunction

the second partial derivative wrt y.

valueback to summary
public double value(double x, double y)

Implements org.apache.commons.math3.analysis.BivariateFunction.value.

Doc from org.apache.commons.math3.analysis.BivariateFunction.value.

Compute the value for the function.

Parameters
x:double

Abscissa for which the function value should be computed.

y:double

Ordinate for which the function value should be computed.

Returns:double

the value.