splinebox.spline_curves.HermiteSpline.
curvilinear_reparametrization_energy#
- HermiteSpline.curvilinear_reparametrization_energy(atol=1e-06, rtol=1e-06)#
This energy can be used to enforce equal spacing of the knots.
Implements equation 25 from [Jacob2004]. In order to make the energy scale invariant, we added a factor of (arc length)^-4 to the integral.
- Parameters:
- atolfloat
The absolute accuracy for the integration. Default is 1e-6. For details see scipy.integrate.quad.
- rtolfloat
The relative accuracy for the integration. Default is 1e-6. For details see scipy.integrate.quad.
- Returns:
- energyfloat
The curvilinear reparametrization energy of the spline.