SciPy

scipy.signal.bspline

scipy.signal.bspline(x, n)[source]

B-spline basis function of order n.

Notes

Uses numpy.piecewise and automatic function-generator.