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

public Class PiecewiseBicubicSplineInterpolator

extends Object
implements BivariateGridInterpolator
Class Inheritance
All Implemented Interfaces
org.apache.commons.math3.analysis.interpolation.BivariateGridInterpolator
Imports
org.apache.commons.math3.exception.DimensionMismatchException, .NoDataException, .NonMonotonicSequenceException, .NullArgumentException, org.apache.commons.math3.util.MathArrays

Generates a piecewise-bicubic interpolating function.
Since
2.2

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public PiecewiseBicubicSplineInterpolatingFunction
interpolate(final double[]
All the x-coordinates of the interpolation points, sorted in increasing order.
xval
,
final double[]
All the y-coordinates of the interpolation points, sorted in increasing order.
yval
,
final double[][]
The values of the interpolation points on all the grid knots: fval[i][j] = f(xval[i], yval[j]).
fval
)

Implements org.apache.commons.math3.analysis.interpolation.BivariateGridInterpolator.interpolate.

Compute an interpolating function for the dataset.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

PiecewiseBicubicSplineInterpolatorback to summary
public PiecewiseBicubicSplineInterpolator()

Method Detail

interpolateback to summary
public PiecewiseBicubicSplineInterpolatingFunction interpolate(final double[] xval, final double[] yval, final double[][] fval) throws DimensionMismatchException, NullArgumentException, NoDataException, NonMonotonicSequenceException

Implements org.apache.commons.math3.analysis.interpolation.BivariateGridInterpolator.interpolate.

Doc from org.apache.commons.math3.analysis.interpolation.BivariateGridInterpolator.interpolate.

Compute an interpolating function for the dataset.

Parameters
xval:double[]

All the x-coordinates of the interpolation points, sorted in increasing order.

yval:double[]

All the y-coordinates of the interpolation points, sorted in increasing order.

fval:double[][]

The values of the interpolation points on all the grid knots: fval[i][j] = f(xval[i], yval[j]).

Returns:PiecewiseBicubicSplineInterpolatingFunction

a function which interpolates the dataset.

Exceptions
DimensionMismatchException:
if the array lengths are inconsistent.
NoDataException:
if any of the arrays has zero length.
NonMonotonicSequenceException:
if the array is not sorted.