Matched Filter: Step-by-Step
How do we find a "1" inside a mountain of noise? Let's break it down.
To recognize a signal, the receiver needs a "Search Image" (The Template). We create one perfect cycle of our carrier wave.
Here is your data sent over the air. We added Random Noise. Notice how the "1" and "0" shapes start to disappear.
We slide our Template across the Noisy Signal. At every point, we multiply them and sum them up.
We only look at the output at the exact end of the bit period (The Vertical Lines). This is where the peak is highest.
If Value $> 0 \rightarrow$ Bit 1
If Value $< 0 \rightarrow$ Bit 0
The "Deep" Math Secret
Why does the Matched Filter work better than just looking at the signal?
Because noise is random. When you sum (integrate) a signal over time:
- The Signal is consistent, so it adds up linearly: $S + S + S = 3S$.
- The Noise is random, so it partially cancels itself out: $+N - N + n - n \approx 0$.
This is called Processing Gain. The longer the bit lasts, the easier it is to see the peak!
Why does the Filter work?
1. The Signal is "Consistent"
Because the BPSK wave follows a pattern (the Sine wave), every part of the wave "agrees" with the filter.
(+10) + (+10) + (+10) + (+10) = +40
The result "adds up linearly" (it grows bigger and bigger in a straight line).
2. The Noise is "Random"
Noise has no pattern. At any moment, it might jump Up or Down. It is chaotic.
(+5) + (-6) + (+2) + (-1) = 0
The pluses and minuses "cancel each other out," staying near zero.
The Matched Filter Equation
To separate the signal from the noise, we use the Discrete Convolution formula:
The Output Peak
Noisy Input
The Template
By multiplying the input by a "Template" ($h[k]$), we ensure that only the parts that look like our signal get amplified, while the noise gets crushed.