| 67 | bool all_same() const { return (count_ == 0 || min_ == max_); } |
| 68 | |
| 69 | HighPrecisionValueType avg() const { |
| 70 | return empty() ? std::numeric_limits<ValueType>::quiet_NaN() |
| 71 | : static_cast<HighPrecisionValueType>(sum_) / count_; |
| 72 | } |
| 73 | |
| 74 | ValueType std_deviation() const { |
| 75 | return all_same() ? 0 : sqrt(squared_sum_ / count_ - avg() * avg()); |
no outgoing calls