Home | History | Annotate | Download | only in base

Lines Matching refs:Value

35 template <class Value> inline void Histogram<Value>::AddValue(Value value) {
36 CHECK_GE(value, static_cast<Value>(0));
37 if (value >= max_) {
38 Value new_max = ((value + 1) / bucket_width_ + 1) * bucket_width_;
42 BucketiseValue(value);
45 template <class Value> inline void Histogram<Value>::AdjustAndAddValue(Value value) {
46 AddValue(value / kAdjust);
49 template <class Value> inline Histogram<Value>::Histogram(const char* name)
57 template <class Value>
58 inline Histogram<Value>::Histogram(const char* name, Value initial_bucket_width,
68 template <class Value>
69 inline void Histogram<Value>::GrowBuckets(Value new_max) {
91 template <class Value> inline size_t Histogram<Value>::FindBucket(Value val) const {
93 // dividing the value by the bucket width.
102 template <class Value>
103 inline void Histogram<Value>::BucketiseValue(Value val) {
113 template <class Value> inline void Histogram<Value>::Initialize() {
121 template <class Value> inline size_t Histogram<Value>::GetBucketCount() const {
125 template <class Value> inline void Histogram<Value>::Reset() {
130 min_value_added_ = std::numeric_limits<Value>::max();
131 max_value_added_ = std::numeric_limits<Value>::min();
136 template <class Value> inline Value Histogram<Value>::GetRange(size_t bucket_idx) const {
141 template <class Value> inline double Histogram<Value>::Mean() const {
146 template <class Value> inline double Histogram<Value>::Variance() const {
150 Value sum_squared = sum_ * sum_;
159 template <class Value>
160 inline void Histogram<Value>::PrintBins(std::ostream& os, const CumulativeData& data) const {
172 template <class Value>
173 inline void Histogram<Value>::DumpBins(std::ostream& os) const {
189 template <class Value>
190 inline void Histogram<Value>::PrintConfidenceIntervals(std::ostream &os, double interval,
206 template <class Value>
207 inline void Histogram<Value>::PrintMemoryUse(std::ostream &os) const {
217 template <class Value>
218 inline void Histogram<Value>::CreateHistogram(CumulativeData* out_data) const {
237 template <class Value>
238 inline double Histogram<Value>::Percentile(double per, const CumulativeData& data) const {
265 double value = lower_value + (upper_value - lower_value) *
268 if (value < min_value_added_) {
269 value = min_value_added_;
270 } else if (value > max_value_added_) {
271 value = max_value_added_;
274 return value;