-
Notifications
You must be signed in to change notification settings - Fork 47
Description
The way the integral in the CubicSplineInterpolator is implemented is slightly off.
We need to evaluate the integral
which results in (see WolframAlpha where
If we rewrite this as implemented in the current code, we get
This is almost the same as what is implemented, with the only difference being the factor
Side note: For performance reasons the various integer powers should be replaced by explicit products, which are much more efficient than the general purpose pow.