Function ndarray_ndimage::gaussian_filter1d[][src]

pub fn gaussian_filter1d<S, A, D>(
    data: &ArrayBase<S, D>,
    sigma: A,
    truncate: A,
    axis: Axis
) -> Array<A, D> where
    S: Data<Elem = A>,
    A: Float + ToPrimitive,
    D: Dimension
Expand description

Gaussian filter for 1-dimensional arrays.

Currently hardcoded with the PadMode::Reflect padding mode and 0 order.

  • data - The input N-D data.
  • sigma - Standard deviation for Gaussian kernel.
  • truncate - Truncate the filter at this many standard deviations.
  • axis - The axis of input along which to calculate.

Panics if the axis length is lower than truncate * sigma + 0.5.