AlexandreHiroyuki / DataTome

Data analysis and filtering using time series for embedded devices (IoT). All in a single C++ library, Data Tome. Focus on the developer's experience and performance. It is the successor to the MovingAveragePlus library.
https://alexandrehiroyuki.github.io/DataTomeDocs/
MIT License
7 stars 0 forks source link

Allow ExpAvg to have the initial value passed as a constructor argument #21

Closed AlexandreHiroyuki closed 2 months ago

AlexandreHiroyuki commented 2 months ago

https://en.wikipedia.org/wiki/Exponential_smoothing#Choosing_the_initial_smoothed_value

The initial value can contribute significantly to the output of the exponential moving average, so the user should be able to set it according to its project necessities.