pub fn gaussian_filter1d<S, A, D>(
data: &ArrayBase<S, D>,
sigma: A,
axis: Axis,
order: usize,
mode: BorderMode<A>,
truncate: usize,
) -> Array<A, D>where
S: Data<Elem = A>,
A: Float + FromPrimitive + 'static,
for<'a> &'a [A]: SymmetryStateCheck,
D: Dimension,Expand description
Gaussian filter for 1-dimensional arrays.
data- The input N-D data.sigma- Standard deviation for Gaussian kernel.axis- The axis of input along which to calculate.order- The order of the filter along all axes. An order of 0 corresponds to a convolution with a Gaussian kernel. A positive order corresponds to a convolution with that derivative of a Gaussian.mode- Method that will be used to select the padded values. See theBorderModeenum for more information.truncate- Truncate the filter at this many standard deviations.
Panics if the axis length is lower than truncate * sigma + 0.5.