spline_filter1d

Function spline_filter1d 

Source
pub fn spline_filter1d<S, A, D>(
    data: &ArrayBase<S, D>,
    order: usize,
    mode: BorderMode<A>,
    axis: Axis,
) -> Array<f64, D>
where S: Data<Elem = A>, A: Copy + 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.
  • mode - The mode parameter determines how the input array is extended beyond its boundaries.
  • axis - The axis along which the spline filter is applied.

Panics if order isn’t in the range [0, 5].