Table of Contents
IntTracker Objects
class IntTracker()
Track statistics for integers
Parameters
min Current min value max Current max value sum Sum of the numbers count Total count of numbers
set_defaults
| set_defaults()
Set attribute values to defaults
mean
| mean()
Calculate the current mean. Returns None
if self.count = 0
update
| update(value)
Add a number to the tracking statistics
merge
| merge(other)
Merge values of another IntTracker with this one.
Parameters
other : IntTracker Other tracker
Returns
new : IntTracker New, merged tracker
to_protobuf
| to_protobuf()
Return the object serialized as a protobuf message
Returns
message : LongsMessage
from_protobuf
| @staticmethod
| from_protobuf(message)
Load from a protobuf message
Returns
number_tracker : IntTracker