Skip to content

Commit 29c5aa4

Browse files
committed
FILT.md improve correlation text.
1 parent 91301e5 commit 29c5aa4

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

non_realtime/FILT.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -288,20 +288,23 @@ perspective as sampling is at exactly the Nyquist rate. I have not yet tested
288288
correlation with real hardware but I can envisage issues if the timing of the
289289
received signal is such that state changes in the expected signal happen to
290290
occur close to the sample time. To avoid uncertainty caused by signal timing
291-
jitter it is likely that sampling needs t be done at N*Nyquist. Two solutions
291+
jitter it is likely that sampling should be done at N*Nyquist. Two solutions
292292
to processing the signal suggest themselves.
293293

294294
The discussion below assumes 2*Nyquist.
295295

296-
One approach is to double the length of the coefficient array repeating each
297-
coefficient so that the time sequence in the coefficient array matches that in
298-
the sample array. Potentially the correlation maximum will occur on two
299-
successive samples but in terms of time this does not imply a loss of
300-
precision.
296+
One approach is to double the length of the coefficient (expected signal) array
297+
repeating each entry so that the time sequence in the coefficient array matches
298+
that in the sample array. Potentially the correlation maximum will occur on two
299+
successive samples but in terms of time (because of the sample rate) this does
300+
not imply a loss of precision.
301301

302302
The other is to first run a decimation filter to reduce the rate to Nyquist. A
303-
decimation filter will introduce a time delay. However if this is applied to
304-
both channels the relative phase will be unaffected.
303+
decimation filter will introduce a time delay, but with a linear phase filter
304+
as produced by TFilter this is fixed and frequency-independent. Decimation is
305+
likely to produce the best result in the presence of noise because it is a
306+
filter: a suitable low pass design will remove in-band noise and aliased out of
307+
band frequencies.
305308

306309
In terms of performance, if sampling at Nyquist takes time T the first approach
307310
will take 2T. The second will take T + Tf where Tf is the time to do the FIR

0 commit comments

Comments
 (0)