Learn Before
Example

Example of One-Dimensional Discrete Convolution

For an input signal x[n]x[n] and an impulse response h[n]h[n], their one-dimensional discrete convolution yields an output sequence y[n]y[n] with initial terms calculated as: y[0]=x[0]h[0]y[0] = x[0]h[0], y[1]=x[0]h[1]+x[1]h[0]y[1] = x[0]h[1] + x[1]h[0], and y[2]=x[0]h[2]+x[1]h[1]+x[2]h[0]y[2] = x[0]h[2] + x[1]h[1] + x[2]h[0]. In Python, this 1-D convolution operation is implemented in the SciPy library using the convolve function.

Image 0

0

1

Updated 2026-05-10

Tags

Python Programming Language

Data Science