Next: , Previous: Bspline_err_msg, Up: Library Routines


4.7 Bspline_eval

Bspline_eval: The evaluation of s(t,z) from its normalized B-spline representation. This function is similar to the function BsplineAlgo_c with the exception that the underlying algorithms 'b' and 'b' are chosen for the user.

Synopsis

     #include <BsplineEval/bsplineval.h>
     #include <BsplineEval/spline_coef.h>
     
     
     
BsplineErr Bspline_eval( double theta, double z, BsplineInput *bspline_input, double *result );

Parameters

double theta
The value of theta to evaluate the B-spline
double z
The value of z to evaluate the B-spline
BsplineInput *bspline_input
All neccessary B-spline input
double *result
s( theta, z )

Description

The Numerical Evaluation of a Spline from its B-Spline Representation by M. G. Cox. J. Inst. Maths. Applics (1978) 21, 135-143.

Returns

The enum BsplineErr.


Possible values for a BsplineErr are as follows:
Bspline_Success
Success
Bspline_OutOfRange
One of the arguments is out of range
Bspline_OutOfRangeT
The theta value is not within the limits of the t_knots
Bspline_OutOfRangeZ
The z value is outside the limits of the z_knots
Bspline_WrongMethod1
The method request must be one of : a, A, b or B
Bspline_WrongMethod2
The method request must be one of : a, A, b or B