Lines Matching refs:val
88 template <class Value> inline size_t Histogram<Value>::FindBucket(Value val) const { in FindBucket() argument
91 DCHECK_GE(val, min_); in FindBucket()
92 DCHECK_LE(val, max_); in FindBucket()
93 const size_t bucket_idx = static_cast<size_t>((val - min_) / bucket_width_); in FindBucket()
100 inline void Histogram<Value>::BucketiseValue(Value val) { in BucketiseValue() argument
101 CHECK_LT(val, max_); in BucketiseValue()
102 sum_ += val; in BucketiseValue()
103 sum_of_squares_ += val * val; in BucketiseValue()
105 ++frequency_[FindBucket(val)]; in BucketiseValue()
106 max_value_added_ = std::max(val, max_value_added_); in BucketiseValue()
107 min_value_added_ = std::min(val, min_value_added_); in BucketiseValue()