curvilinear_reparametrization_energy#

HermiteSpline.curvilinear_reparametrization_energy(epsabs=1e-06, epsrel=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#

epsabsfloat

The absolute accuracy for the integration. Default is 1e-6. For details see scipy.integrate.quad.

epsrelfloat

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.