Next: Bspline_determine_index, Previous: BsplineAlgo_c, Up: Library Routines
BsplineAlgo_c_derivs – The evaluation of s(t,z) and the derivative with respect to t and 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_derivs( double theta, double z, BsplineInput *bspline_input, BsplineResult *bspline_result );
double theta
- The theta to evaluate the B-spline
double z
- The value of z to evaluate the B-spline
BsplineInput *bspline_input
- All B-spline input
BsplineResult *bspline_result
- All B-spline output
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.
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