Moving average usage
Posted: Sunday 09 March 2025 18:58
Hello,
I would like to calculate moving average of a value, but can't succeed.
The goal is to detect water leak depending on water consumption. I do have the following available values from water counter : number of liters used since midnight and instantaneous water flow. I think the last one is the clue, if the water flow is stable for a certain amount of time (tbd) and not equal to zéro, there is a leak.
This means that if the moving average equals the actual flow, the leak is suspected.
Can anybody give me some help about moving average calculation to solve m'y issue ?
Thanks
I would like to calculate moving average of a value, but can't succeed.
The goal is to detect water leak depending on water consumption. I do have the following available values from water counter : number of liters used since midnight and instantaneous water flow. I think the last one is the clue, if the water flow is stable for a certain amount of time (tbd) and not equal to zéro, there is a leak.
This means that if the moving average equals the actual flow, the leak is suspected.
Can anybody give me some help about moving average calculation to solve m'y issue ?
Thanks