splinepy.helpme.fit.solve_for_control_points#
- splinepy.helpme.fit.solve_for_control_points(fitting_points, fitting_spline, queries, interpolate_endpoints)[source]#
Builds and solves the system to calculate control points.
- Parameters:
fitting_points ((m + 1 x dim) array) – points to be interpolated/approximated
fitting_spline (spline) – spline used for interpolation/approximation
queries ((n x 1) array) – parametric values where the spline will be evaluated
interpolate_endpoints (bool) – if True -> endpoints are interpolated
- Returns:
residual – residual (coefficient_matrix @ control_points - fitting_points)
- Return type:
float