Skip to main content

Module cubic_basis

Module cubic_basis 

Source
Expand description

Cubic basis (cardinal / Catmull-Rom) interpolation.

Each interval is a cubic Hermite segment whose node slopes come from a tension-scaled central difference of the neighbouring points. With tension = 0 this is the Catmull-Rom spline.

See the book entry Piecewise and spline interpolation.

Functionsยง

cubic_basis
Builds a cardinal cubic interpolant through (x, y).