Home | History | Annotate | Download | only in base

Lines Matching refs:Value

32 template <class Value> class Histogram {
38 friend class Histogram<Value>;
47 Histogram(const char* name, Value initial_bucket_width, size_t max_buckets = 100);
48 void AddValue(Value);
63 Value GetRange(size_t bucket_idx) const;
70 Value Sum() const {
74 Value AdjustedSum() const {
78 Value Min() const {
82 Value Max() const {
92 size_t FindBucket(Value val) const;
93 void BucketiseValue(Value val);
94 // Add more buckets to the histogram to fill in a new value that exceeded
96 void GrowBuckets(Value val);
102 // Width of the bucket range. The lower the value is the more accurate
104 Value bucket_width_;
109 Value sum_;
110 // Minimum value that can fit in the histogram. Fixed to zero for now.
111 Value min_;
112 // Maximum value that can fit in the histogram, grows adaptively.
113 Value max_;
115 Value sum_of_squares_;
116 // Maximum value entered in the histogram.
117 Value min_value_added_;
118 // Minimum value entered in the histogram.
119 Value max_value_added_;