e02df calculates values of a bicubic spline from its B-spline representation. The spline is evaluated at all points on a rectangular grid.
Syntax
C# |
---|
public static void e02df( int mx, int my, int px, int py, double[] x, double[] y, double[] lamda, double[] mu, double[] c, double[] ff, out int ifail ) |
Visual Basic |
---|
Public Shared Sub e02df ( _ mx As Integer, _ my As Integer, _ px As Integer, _ py As Integer, _ x As Double(), _ y As Double(), _ lamda As Double(), _ mu As Double(), _ c As Double(), _ ff As Double(), _ <OutAttribute> ByRef ifail As Integer _ ) |
Visual C++ |
---|
public: static void e02df( int mx, int my, int px, int py, array<double>^ x, array<double>^ y, array<double>^ lamda, array<double>^ mu, array<double>^ c, array<double>^ ff, [OutAttribute] int% ifail ) |
F# |
---|
static member e02df : mx : int * my : int * px : int * py : int * x : float[] * y : float[] * lamda : float[] * mu : float[] * c : float[] * ff : float[] * ifail : int byref -> unit |
Parameters
- mx
- Type: System..::..Int32On entry: mx and my must specify and respectively, the number of points along the and axis that define the rectangular grid.Constraint: and .
- my
- Type: System..::..Int32On entry: mx and my must specify and respectively, the number of points along the and axis that define the rectangular grid.Constraint: and .
- px
- Type: System..::..Int32On entry: px and py must specify the total number of knots associated with the variables and respectively. They are such that and are the corresponding numbers of interior knots.Constraint: and .
- py
- Type: System..::..Int32On entry: px and py must specify the total number of knots associated with the variables and respectively. They are such that and are the corresponding numbers of interior knots.Constraint: and .
- x
- Type: array<System..::..Double>[]()[][]An array of size [mx]
- y
- Type: array<System..::..Double>[]()[][]An array of size [mx]
- lamda
- Type: array<System..::..Double>[]()[][]An array of size [px]On entry: lamda and mu must contain the complete sets of knots and associated with the and variables respectively.Constraint: the knots in each set must be in nondecreasing order, with and .
- mu
- Type: array<System..::..Double>[]()[][]An array of size [px]On entry: lamda and mu must contain the complete sets of knots and associated with the and variables respectively.Constraint: the knots in each set must be in nondecreasing order, with and .
- c
- Type: array<System..::..Double>[]()[][]An array of size []On entry: must contain the coefficient described in [Description], for and .
- ff
- Type: array<System..::..Double>[]()[][]An array of size []On exit: contains the value of the spline at the point , for and .
- ifail
- Type: System..::..Int32%On exit: unless the method detects an error or a warning has been flagged (see [Error Indicators and Warnings]).
Description
e02df calculates values of the bicubic spline on a rectangular grid of points in the - plane, from its augmented knot sets and and from the coefficients , for and , in its B-spline representation
Here and denote normalized cubic B-splines, the former defined on the knots to and the latter on the knots to .
The points in the grid are defined by coordinates , for , along the axis, and coordinates , for , along the axis.
This method may be used to calculate values of a bicubic spline given in the form produced by e01da (E02DAF not in this release) (E02DCF not in this release) (E02DDF not in this release). It is derived from the method 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
Error Indicators and Warnings
Errors or warnings detected by the method:
On entry, , or , or , or .
- On entry, the restriction , or the restriction , is violated.
Accuracy
The method used to evaluate the B-splines is numerically stable, in the sense that each computed value of can be regarded as the value that would have been obtained in exact arithmetic from slightly perturbed B-spline coefficients. See Cox (1978) for details.
Parallelism and Performance
None.
Further Comments
Computation time is approximately proportional to .
Example
This example reads in knot sets and , and a set of bicubic spline coefficients . Following these are values for and the coordinates , for , and values for and the coordinates , for , defining the grid of points on which the spline is to be evaluated.
Example program (C#): e02dfe.cs