Name
Averager -- Averages together data, gives the data to whomever asks.
Description
Averager objects read a value (via a MessageProbe) from a collection (typically a list) of objects and collect statistics over them.
Methods
Phase: Creating
-
setCollection: aCollection Sets the collection of objects that will be probed.
Phase: Using
-
update The update method runs through the collection calling the selector on each object.
- (double)
getAverage The getAverage method averages the values the averager collects. The total and count are read out of the object to compute the average.
- (double)
getTotal The getTotal method sums the values the averager collects. The value is read out of the object, not computed everytime it is asked for.
- (double)
getMin The getMin method returns the minimum value the averager collects. The value is read out of the object, not computed everytime it is asked for.
- (unsigned)
getCount The getCount method returns the number of values the averager collects.