Home | History | Annotate | Download | only in update_payload

Lines Matching refs:Histogram

5 """Histogram generation tools."""
12 class Histogram(object):
13 """A histogram generating object.
16 ASCII histogram, including bars and percentage markers, and taking care of
19 in different formats into a histogram. Histogram generation is exported via
31 """Initialize a histogram object.
34 data: list of (key, count) pairs constituting the histogram
36 formatter: function used for formatting raw histogram values
47 """Takes a dictionary of counts and returns a histogram object.
51 generating and returning a histogram for them. This is a useful convenience
58 formatter: function used for formatting raw histogram values
61 A histogram object based on the given data.
71 return Histogram(hist, scale, formatter)
75 """Takes a list of (possibly recurring) keys and returns a histogram object.
78 FromCountDict() to generate the actual histogram. For example:
85 formatter: function used for formatting raw histogram values
88 A histogram object based on the given data.
94 return Histogram.FromCountDict(count_dict, scale, formatter, key_names)
116 """Returns the keys of the histogram."""