The running mean will integrate a given expression over time and return the mean value.
The running mean can be set to start or stop the integration at specific events or to reset the integrated value.