[time-nuts] Linear or quadractic fit algorithms for small microcontrollers?

Dr. Ulrich L. Rohde ka2weu at aol.com
Wed Dec 26 16:12:24 UTC 2018


Pade fit is one of the better tools

Sent from my iPhone

> On Dec 26, 2018, at 10:53 AM, Tim Shoppa <tshoppa at gmail.com> wrote:
> 
> I know we discussed this many years ago, probably in context of the HP
> Smartclock patent, but I've forgotten all the details.
> 
> Say I have a circular buffer of up to several dozen time and offset values.
> The intent was to sample at regular intervals but some samples are missing.
> Are there simple microcontroller-oriented algorithms - integer math, no big
> scratch arrays - for doing linear or quadractic fits and maybe even
> excluding some outliers?
> 
> Instead of using arrays for circular buffers, if there are algorithms that
> "age out" the older samples so that they get lesser and lesser weight, and
> also give linear and/or quadractic fit coefficients, that's even neater.
> For example exponential smoothing.
> 
> Tim N3QE
> _______________________________________________
> time-nuts mailing list -- time-nuts at lists.febo.com
> To unsubscribe, go to http://lists.febo.com/mailman/listinfo/time-nuts_lists.febo.com
> and follow the instructions there.





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