Next: BsplineAlgo_c_derivs, Previous: BsplineAlgo_b, Up: Library Routines
BsplineAlgo_c: The evaluation of s(t,z) from its normalized B-spline representation. This function allows the user to select the underlying algorithm used, 'a' or 'b'.
#include <BsplineEval/bsplineval.h> #include <BsplineEval/spline_coef.h>BsplineErr BsplineAlgo_c( double theta, double z, BsplineInput *bspline_input, double *result );
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 )
The Numerical Evaluation of a Spline from its B-Spline Representation by M. G. Cox. J. Inst. Maths. Applics (1978) 21, 135-143.
The enum BsplineErr. SEE ALSO Bspline_eval
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