pub fn convolve1d<S, A, D>(
    data: &ArrayBase<S, D>,
    weights: &ArrayBase<S, Ix1>,
    axis: Axis,
    mode: BorderMode<A>,
    origin: isize
) -> Array<A, D>where
    S: Data<Elem = A>,
    A: Copy + Num + ScalarOperand + FromPrimitive + PartialOrd,
    for<'a> &'a [A]: SymmetryStateCheck,
    D: Dimension,
Expand description

Calculate a 1-D convolution along the given axis.

The lines of the array along the given axis are convolved with the given weights.

  • data - The input N-D data.
  • weights - 1-D sequence of numbers.
  • axis - The axis of input along which to calculate.
  • mode - The mode parameter determines how the input array is extended beyond its boundaries.
  • origin - Controls the placement of the filter on the input array’s pixels. A value of 0 centers the filter over the pixel, with positive values shifting the filter to the left, and negative ones to the right.