An Erlang library that can take samples of an integer value at regular interval and calculate the moving average