def spline_filter1d(input, order=<NUM_LIT:3>, axis=-<NUM_LIT:1>, output=numpy.float64):
if order < <NUM_LIT:0> or order > <NUM_LIT:5>:<EOL><INDENT>raise RuntimeError('<STR_LIT>')<EOL><DEDENT>input = numpy.asarray(input)<EOL>if numpy.iscomplexobj(input):<EOL><INDENT>raise TypeError('<STR_LIT>')<EOL><DEDENT>output, return_value = _ni_support._get_output(output, input)<EOL>if order in [<NUM_LIT:0>, <NUM_LIT:1>]:<EOL><INDENT>output[...] = numpy.array(input)<EOL><DEDENT>else:<EOL><INDENT>axis = _ni_support._check_axis(axis, input.ndim)<EOL>_nd_image.spline_filter1d(input, order, axis, output)<EOL><DEDENT>return return_value<EOL>
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.

Parameters
----------
input : array_like
    The input array.
order : int, optional
    The order of the spline, default is 3.
axis : int, optional
    The axis along which the spline filter is applied. Default is the last
    axis.
output : ndarray or dtype, optional
    The array in which to place the output, or the dtype of the returned
    array. Default is `numpy.float64`.

Returns
-------
spline_filter1d : ndarray or None
    The filtered input. If `output` is given as a parameter, None is
    returned.