This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / interpolate / _bsplines / _not_a_knot

function

scipy.interpolate._bsplines:_not_a_knot

source: build-install/usr/lib/python3.14/site-packages/scipy/interpolate/_bsplines.py:1537

Signature

def _not_a_knot(x, k)

Summary

Given data x, construct the knot vector w/ not-a-knot BC. cf de Boor, XIII(12).

Extended Summary

For even k, it's a bit ad hoc: Greville sites + omit 2nd and 2nd-to-last data points, a la not-a-knot. This seems to match what Dierckx does, too: https://github.com/scipy/scipy/blob/maintenance/1.11.x/scipy/interpolate/fitpack/fpcurf.f#L63-L80

Aliases

  • scipy.interpolate._bsplines._not_a_knot