splev#

swordfish.function.splev()#

splev, short for Spline Evaluation, is used to evaluate B-spline curves or their derivatives. Given the knots and coefficients of the B-spline representation, this function calculates the values of the smooth polynomials and their derivatives. If null value is included in the input values of x or tck, it will be filled with 0.

Parameters:
  • X (Constant) – A vector that specifies a set of data points to obtain corresponding values on the spline.

  • tck (Constant) – A tuple of length 3 or a B-spline curve object that contains a vector t of knots, the B-spline coefficients, and the degree k of the spline. It can be generated with function splrep. Note that the spline degree k must satisfy 1 <= k <= 5.

Returns:

y, a DOUBLE type vector that represents the array of spline function values evaluated at points x.

Return type:

Constant