In message 
<CAL8XPmM+O0EP7yK7mUC16urmyBesWb+wR4UyJd5LrhLCSbWt=g...@mail.gmail.com>
, Azelio Boriani writes:

>I'm interested in your circular averaging buffer: suppose 1K long, the 1st
>sample goes into position 0, the 2nd into 1 ... the 1000th into 999 or, the
>1st gets scaled and then summed with that already present in position 0
>then the result back in position 0? And so on, of course, for position 1, 2
>...

Yes.

And once you have filled a few seconds into the buffer, you can multiply
each of the 1000 locations with a n*sine and n*cosine, and sum the results
and you have a phase vector for the signal at n KHz.

For signals like DCF77 on half kHz grid, you need a 2 msec = 2000 samples
long buffer.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
p...@freebsd.org         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

_______________________________________________
time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.

Reply via email to