splinepy.helpme.fit.compute_knot_vector#

splinepy.helpme.fit.compute_knot_vector(degree, n_control_points, u_k, n_fitting_points)[source]#

Computes the knot_vector for a spline.

Parameters:
  • degree (int) – degree of spline

  • n_control_points (int) – number of control points

  • u_k ((n, 1) array-like) – array containing parameterization values

  • n_fitting_points (int) – number of fitting_points

Returns:

knot_vector – array containing knots of spline

Return type:

(degree + n_control_points + 1, 1) np.ndarray