vortigont / pzem-edl

An event-driven library for ESP32 implementing PZEM-004T v3.0 / PZEM-003 / PZEM-017 Modbus-RTU proto
GNU General Public License v3.0
21 stars 4 forks source link

Averaging function for TimeSeries container #9

Closed vortigont closed 11 months ago

vortigont commented 11 months ago
 - TimeSeries can attach Averaging function to be applied on intermediate data
    if TimeSeries container is set to keep data with interval X
    any intermediate data being pushed during time t<X could be averaged and stacked
    until time X. This could give more accurate results on TimeSeries with long period, i.e. 1 or 5 min
 - use std::list instead of LinkedList for TSContainer