WebCab XL Community Edition

Inter.BicubicSpline Method 

Returns the value at a given point of the interpolation function obtained by the bicubic spline interpolation method applied to a function of two independent variables which is known at certain tabulation points.

public double BicubicSpline(
   double[] TabPts1stVar,
   double[] TabPts2ndVar,
   double[][] Func,
   double IntPts1stCor,
   double IntPts2ndCor
);

Parameters

TabPts1stVar
An array of doubles which are the values in the first variable at which the function is tabulated.
TabPts2ndVar
An array of doubles which are the values in the second variable at which the function is tabulated.
Func
An m by n matrix of doubles (or double[][]) representing the function in two variables which we interpolate. This matrix (or double[][]) represents a function by the (m,n)th entry being the value of the function at the mth tabulated point in the first variable and the nth tabulated point in the second variable.
IntPts1stCor
A double which is the value in the first variable of the point at which the interpolation functions value is returned.
IntPts2ndCor
A double which is the value in the second variable of the point at which the interpolation functions value is returned.

Remarks

Given the tabulation points tabulationPointsInFirstVariable[0..m-1] and tabulationPointsInSecondVariable[0..n-1], and the values of the function function[0..m-1][n-1], we wish to interpolate on the grid spanned by the tabulation points. We can evaluate the value of the bicubic spline of the function at a given interpolation point (interpolationPointFirstCoordinate, interpolationPointSecondCoordinate).

The following restrictions apply to the input parameters:

Excel Remarks

The full name of this function inside Excel is Ipola_Inter_BicubicSpline.

Exceptions

Exception TypeCondition
InterpolationExceptionThrown when the input values do not meet the requirements mentioned above.

See Also

Inter Class | Interpolation Namespace