[time-nuts] New algorithm, better ADEV

Li Ang lllaaa at gmail.com
Thu Jan 15 03:45:10 UTC 2015


Tom Van Baak <tvb at ...> writes:


> Just use:
>   ref_delta = ref_curr - ref_prev;
>   sig_delta = sig_curr - sig_prev;
> 
> Not only is it much simpler but it also works in every case (your code 
would fail whenever curr equals prev).
> 
> Here's a test program in case you don't believe me: 
http://leapsecond.com/tools/wrap1.c
> 
> /tvb
> 

Hi Tom,
  Yes, your way is simpler and reliable since the variables are all 
uint32_t type. Thanks for pointing out the mistake.







More information about the Time-nuts_lists.febo.com mailing list