The GraphableNumber class keeps track of past values of a number, and can compute averages for the recent past.
When created, an object records itself by name, and there is a static function to obtain a list of all the objects.
Objects of this class cannot be deleted. Once created, statistics are forever.
Constructs a number called name.
Returns the average value since time t. Overflow is not handled.
This private helper gets rid of all expired history and makes sure that the maximum and minimum ends of the range encompass t.
Returns the most recent stored value.
Returns the maximum value since time t.
Returns the minimum value since time t.
Returns the name supplied to this object's constructor.
Returns the oldest time for which a value is recorded.
Records the current value as v. The current time (with second resolution) is implicitly also recorded.
Returns the value at time t, or 0 if t is out of bounds.
Returns the youngest time for which a value is recorded.
This web page based on source code belonging to The Archiveopteryx Developers. All rights reserved.