EPFL-Center-for-Imaging / splinebox

A python package for fitting splines.
BSD 3-Clause "New" or "Revised" License
14 stars 0 forks source link

Implement second derivative for Hermite splines #30

Closed faymanns closed 1 month ago

faymanns commented 1 month ago

In the original version, the CubicHermite and the ExponentialHermite basis functions where implemented as not twice differentiable, but they are in fact twice differentiable. They are just not C2. Since some of the non-Hermite basis functions are also not C2 but we have implemented the second derivative, we should also do this for the Hermite splines.

Even though the second derivatives are not continuous, having them will be useful to compute curvature and bending energy.

codecov-commenter commented 1 month ago

:warning: Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 98.48%. Comparing base (9583f0b) to head (edd5d10).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #30 +/- ## ========================================== - Coverage 98.49% 98.48% -0.01% ========================================== Files 3 3 Lines 530 528 -2 ========================================== - Hits 522 520 -2 Misses 8 8 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.