"x_avg = x_avg + (x - x_avg) * a_avg;"

Hi again Magnus,

In fact, I just post-processed some data using that formula in perl.  It looks 
great, and will indeed save me code and memory space.  And, it can be a user 
variable, rather than hard-coded.  Thanks for the heads up!

Bob





>________________________________
> From: Magnus Danielson <mag...@rubidium.dyndns.org>
>To: time-nuts@febo.com 
>Sent: Wednesday, March 12, 2014 12:51 PM
>Subject: Re: [time-nuts] PLL Math Question
> 
>
>Bob,
>
><snip>
>
>Exponential averger takes much less memory. Consider this code:
>
>x_avg = x_avg + (x - x_avg) * a_avg;
>
>Where a_avg is the time-constant control parameter.
>
>Cheers,
>Magnus
>
>
>
_______________________________________________
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