Skip to main content

Module akima

Module akima 

Source
Expand description

Akima interpolation: a locally determined piecewise cubic that avoids the wiggles of a global spline.

See the book entry Piecewise and spline interpolation.

Functions§

akima
Builds an Akima (1970) interpolant through (x, y); x strictly increasing, at least two points (two give a straight line).
akima_slopes
The node slopes of Akima’s method (modified = false) or of makima (modified = true).
makima
The modified Akima interpolant (makima, Cosmin Ionita 2019; SciPy’s Akima1DInterpolator(method="makima")): the weights |m₄ − m₃| + |m₄ + m₃|/2 and |m₂ − m₁| + |m₂ + m₁|/2 also count the secants’ size, so flat stretches and repeated secants no longer produce overshoot.