In message 
, 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


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         | 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 --
To unsubscribe, go to
and follow the instructions there.

Reply via email to