naginterfaces.library.fit.dim2_spline_evalv¶
- naginterfaces.library.fit.dim2_spline_evalv(x, y, lamda, mu, c)[source]¶
dim2_spline_evalv
calculates values of a bicubic spline from its B-spline representation.For full information please refer to the NAG Library document for e02de
https://support.nag.com/numeric/nl/nagdoc_30.1/flhtml/e02/e02def.html
- Parameters
- xfloat, array-like, shape
and must contain and , for , respectively. These are the coordinates of the points at which values of the spline are required. The order of the points is immaterial.
- yfloat, array-like, shape
and must contain and , for , respectively. These are the coordinates of the points at which values of the spline are required. The order of the points is immaterial.
- lamdafloat, array-like, shape
and must contain the complete sets of knots and associated with the and variables respectively.
- mufloat, array-like, shape
and must contain the complete sets of knots and associated with the and variables respectively.
- cfloat, array-like, shape
must contain the coefficient described in Notes, for , for .
- Returns
- fffloat, ndarray, shape
contains the value of the spline at the point , for .
- Raises
- NagValueError
- (errno )
On entry, .
Constraint: .
- (errno )
On entry, .
Constraint: .
- (errno )
On entry, .
Constraint: .
- (errno )
On entry, the knots in are not in nondecreasing order.
- (errno )
On entry, the knots in are not in nondecreasing order.
- (errno )
On entry, point lies outside the rectangle bounded by , , , : , and .
- Notes
In the NAG Library the traditional C interface for this routine uses a different algorithmic base. Please contact NAG if you have any questions about compatibility.
dim2_spline_evalv
calculates values of the bicubic spline at prescribed points , for , from its augmented knot sets and and from the coefficients , for , for , in its B-spline representationHere and denote normalized cubic B-splines, the former defined on the knots to and the latter on the knots to .
This function may be used to calculate values of a bicubic spline given in the form produced by
interp.dim2_spline_grid
,dim2_spline_panel()
,dim2_spline_grid()
anddim2_spline_sctr()
. It is derived from the function B2VRE in Anthony et al. (1982).
- References
Anthony, G T, Cox, M G and Hayes, J G, 1982, DASL – Data Approximation Subroutine Library, National Physical Laboratory
Cox, M G, 1978, The numerical evaluation of a spline from its B-spline representation, J. Inst. Math. Appl. (21), 135–143