Class BicubicFunction
java.lang.Object
org.apache.commons.math3.analysis.interpolation.BicubicFunction
- All Implemented Interfaces:
BivariateFunction
Bicubic function.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
N
private static final short NNumber of points.- See Also:
-
a
private final double[][] aCoefficients
-
-
Constructor Details
-
BicubicFunction
BicubicFunction(double[] coeff) Simple constructor.- Parameters:
coeff
- Spline coefficients.
-
-
Method Details
-
value
public double value(double x, double y) Compute the value for the function.- Specified by:
value
in interfaceBivariateFunction
- Parameters:
x
- Abscissa for which the function value should be computed.y
- Ordinate for which the function value should be computed.- Returns:
- the value.
-
apply
private double apply(double[] pX, double[] pY, double[][] coeff) Compute the value of the bicubic polynomial.- Parameters:
pX
- Powers of the x-coordinate.pY
- Powers of the y-coordinate.coeff
- Spline coefficients.- Returns:
- the interpolated value.
-