How can i calculate a moving avarage in arduino?

https://www.arduino.cc/reference/en/libraries/moving-average-library/