📃

Moving Average+ Lib for Arduino Docs


GitHub - AlexandreHiroyuki/MovingAveragePlus: A C++ library that implements a moving average on the Arduino platform. Performance and usability are the two focuses I thought of when creating this library, so every improving tip is welcome.
A C++ library that implements a moving average on the Arduino platform. Performance and usability are the two focuses I thought of when creating this library, so every improving tip is welcome. - GitHub - AlexandreHiroyuki/MovingAveragePlus: A C++ library that implements a moving average on the Arduino platform.
https://github.com/AlexandreHiroyuki/MovingAveragePlus

📌Table of Contents


💾Installation


  1. Clone the repository and download the zip file at https://github.com/AlexandreHiroyuki/MovingAverage_ArduinoLibrary. Also, you can see and download all releases at https://github.com/AlexandreHiroyuki/MovingAverage_ArduinoLibrary/releases.
  1. Drag and drop it on Arduino/libraries/ folder.
  1. Include it on your code.
    #include <MovingAveragePlus.h>

MovingAveragePlus
Data Processing Moving Average Plus library for Arduino Implements a lightweight moving average structure on Arduino. Performance and usability are the two focuses I thought of when creating this library. Author: Alexandre Hiroyuki Yamauchi Maintainer: Alexandre Hiroyuki Yamauchi Read the documentation This library is compatible with all architectures so you should be able to use it on all the Arduino boards.
https://www.arduino.cc/reference/en/libraries/movingaverageplus/
Moving Average Plus
Moving Average Plus library for Arduino
https://www.arduinolibraries.info/libraries/moving-average-plus
PlatformIO Registry
The world's first package and project dependency management solution for embedded development
https://registry.platformio.org/libraries/alexandrehiroyuki/MovingAveragePlus

💡Getting Started


  1. You can easily try out the library by running the example code.
  1. Just open the subfolder MovingAverage_ArduinoLibrary/examples/.
  1. Then try compiling the moving_average_print.ino.
  1. Open the serial monitor.
  1. Then see the array magically moving and calculating it average!

📦Moving Average+ Methods


The MovingAveragePlus class abstracts the implementation of a circular array in order to calculate the arithmetic average of its members. Because it is a circular array, the next input will replace the oldest element (represented by the first index), so it is also possible to call it a FIFO queue. If you are used to the C++ Standard Library, it will be easier to learn the methods since they follow the same pattern of name and logic.

Click on the link below to see more about the class methods.