Function ndarray_ndimage::spline_filter1d
source · pub fn spline_filter1d<S, A, D>(
data: &ArrayBase<S, D>,
order: usize,
axis: Axis
) -> Array<f64, D>where
S: Data<Elem = A>,
A: ToPrimitive,
D: Dimension,Expand description
Calculate a 1-D spline filter along the given axis.
The lines of the array along the given axis are filtered by a spline filter. The input data
will be processed in f64 and returned as such.
data- The input N-D data.order- The order of the spline.axis- The axis along which the spline filter is applied.
Panics if order isn’t in the range [0, 5].