Maintains a log of measurements for a variable. For each measurement,
the time and value of the variable is recorded. Various statistics are
computed for the recorded data.
|
|
|
reset_statistics(self)
Resets the aggregated statistics. |
source code
|
|
|
reset_history(self)
Deletes all measurements recorded so far. |
source code
|
|
|
reset_all(self)
Resets measurement log and statistics. |
source code
|
|
|
|
float
|
movavg(self,
samples=MOVING_STATS_SAMPLES)
Returns the moving average of the recorded measurements. |
source code
|
|
float
|
|
float
|
stdev(self)
Returns the standard deviation of the recorded measurements. |
source code
|
|
boolean
|
|
float
|
|
float
|
|
float
|
duration(self)
Returns the period during which measurements where made (the time
elapsed from the first to the last measurement). |
source code
|
|
float
|
|
float
|
|
float
|
|
float
|
|
float
|
|
float
|
|
[(float, float)]
|
|