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

public Class TricubicSplineInterpolator

extends Object
implements TrivariateGridInterpolator
Class Inheritance
All Implemented Interfaces
org.apache.commons.math3.analysis.interpolation.TrivariateGridInterpolator
Annotations
@Deprecated
Imports
org.apache.commons.math3.exception.DimensionMismatchException, .NoDataException, .NonMonotonicSequenceException, .NumberIsTooSmallException, org.apache.commons.math3.util.MathArrays

Deprecated

To be removed in 4.0 (see MATH-1166).

Generates a tricubic interpolating function.
Since
2.2

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public TricubicSplineInterpolatingFunction
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[]
All the z-coordinates of the interpolation points, sorted in increasing order.
zval
,
final double[][][]
the values of the interpolation points on all the grid knots: fval[i][j][k] = f(xval[i], yval[j], zval[k]).
fval
)

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

Deprecated as a consequence of TricubicSplineInterpolatingFunction being deprecated.

Compute an interpolating function for the dataset.

private int

Returns:

the next index
nextIndex
(int
Index
i
,
int
Upper limit of the array
max
)

Compute the next index of an array, clipping if necessary.

private int

Returns:

the previous index
previousIndex
(int
Index
i
)

Compute the previous index of an array, clipping if necessary.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

TricubicSplineInterpolatorback to summary
public TricubicSplineInterpolator()

Method Detail

interpolateback to summary
public TricubicSplineInterpolatingFunction interpolate(final double[] xval, final double[] yval, final double[] zval, final double[][][] fval) throws NoDataException, NumberIsTooSmallException, DimensionMismatchException, NonMonotonicSequenceException

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

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

Deprecated

as a consequence of TricubicSplineInterpolatingFunction being deprecated. See corresponding docs for further information.

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.

zval:double[]

All the z-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][k] = f(xval[i], yval[j], zval[k]).

Returns:TricubicSplineInterpolatingFunction

a function that interpolates the data set.

Exceptions
NoDataException:
if any of the arrays has zero length.
NumberIsTooSmallException:
if the number of points is too small for the order of the interpolation
DimensionMismatchException:
if the array lengths are inconsistent.
NonMonotonicSequenceException:
if arrays are not sorted
nextIndexback to summary
private int nextIndex(int i, int max)

Compute the next index of an array, clipping if necessary. It is assumed (but not checked) that i is larger than or equal to 0.

Parameters
i:int

Index

max:int

Upper limit of the array

Returns:int

the next index

previousIndexback to summary
private int previousIndex(int i)

Compute the previous index of an array, clipping if necessary. It is assumed (but not checked) that i is smaller than the size of the array.

Parameters
i:int

Index

Returns:int

the previous index