This is documentation for an old release of SciPy (version 0.7.). Read this page in the documentation of the latest stable release (version 1.15.1).

scipy.ndimage.interpolation.spline_filter1d

scipy.ndimage.interpolation.spline_filter1d(input, order=3, axis=-1, output=<type 'numpy.float64'>, output_type=None)

Calculates a one-dimensional spline filter along the given axis.

The lines of the array along the given axis are filtered by a spline filter. The order of the spline must be >= 2 and <= 5.