Parameter | Description |
duration | The maximum age in seconds for samples, or 0 if all samples should be used to calculate the EWMA. |
weight | The weight of the most recent sample. Must be greater than 0 and less than or equal to 1. |
Operation | Description |
start | Starts the calculation of weightings. Must be called before the calculator will generate any statistics. |
stop | Stops the calculation of further weightings. Any subsequent input feeds are ignored. |
clear | Clears the current data set. |
Feed | Fields | Description |
data | value | The feed of values. |
Feed | Fields | Description |
ewma | value | The exponentially-weighted average. |
samples | The number of samples that have been used to produce the average value. |