|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
1D convolution is the operation that combines two discrete signals — an input This tutorial animates that sliding operation. The top panels show the input signal (blue) and kernel (red) as stem plots. The bottom panel runs the kernel across the input position by position, accumulating the output (yellow) one sample at a time. A green rectangle highlights the current overlap window so you can see exactly which input samples contribute to each output value. Sections Mathematical FoundationDiscrete 1D convolution of input y[n] = Σk x[k] · h[n − k]
For each output index Kernel FlippingThe See it directly: select the Asymmetric (Ramp) kernel. The top-right panel shows the kernel as defined: [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7] (small → large). In the animation panel below, the same kernel slides as [0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1] (large → small). The flip is built into the convolution math; symmetric kernels (Box, Gaussian) look identical either way which is why the effect is invisible for those presets.
Output Length and BoundariesIf the input has length output length = L + M − 1
The extra Kernel EffectsEach kernel preset implements a different linear operation. The available presets group naturally:
Impulse response trick: when the input is an Impulse (single spike), the output is exactly the (flipped) kernel itself. This is why "kernel" and "impulse response" are interchangeable terms in linear systems theory — the output of any LTI system fed an impulse is its kernel.
SimulationThe interactive simulator is below. Pick an input signal and a kernel from the dropdowns, then either step manually or hit Run to let the kernel slide automatically. Watch the output stem plot accumulate sample by sample as the green overlap window moves across. Usage
Parameters
Key Concepts
Limitations
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||