Home | History | Annotate | Download | only in tools

Lines Matching defs:Histogram

46 class Histogram:
48 self.histogram = {}
54 if index not in self.histogram:
55 self.histogram[index] = 0
56 self.histogram[index] += 1
60 keys = self.histogram.keys()
68 str(min_value), str(max_value), self.histogram[i]))
77 def __init__(self, key, histogram, csv, percentiles):
80 self.histogram = histogram
87 if self.histogram:
88 self.histogram.add(float(entry[self.key]))
130 if self.histogram:
131 ret.append(str(self.histogram))
150 parser.add_argument('--histogram-type', metavar='<linear|log2>',
152 help='histogram type to use (default: linear)')
153 linear_group = parser.add_argument_group('linear histogram specific')
154 linear_group.add_argument('--linear-histogram-granularity',
157 help='histogram granularity (default: 5)')
158 log2_group = parser.add_argument_group('log2 histogram specific')
159 log2_group.add_argument('--log2-histogram-init-bucket', metavar='START',
162 parser.add_argument('--histogram-omit-empty-buckets',
165 help='omit empty histogram buckets')
166 parser.add_argument('--no-histogram', dest='histogram',
167 action='store_false', help='do not print histogram')
168 parser.set_defaults(histogram=True)
181 histogram = None
182 if args.histogram:
188 histogram = Histogram(bucket_trait, not args.histogram_omit_empty)
197 categories = [ Category(key, deepcopy(histogram), args.csv, percentiles)