Interactive demonstration of convolution: flip, slide, multiply, sum process in time and frequency domains
First, flip the kernel h[k] to get h[-k]. This mirrors the kernel horizontally.
Shift the flipped kernel to position n to get h[n-k]. This determines where we're computing the output.
Multiply the input signal x[k] by the shifted kernel h[n-k] at each overlapping position.
Sum all the products to get the output value y[n] at position n.