| 76 | } |
| 77 | |
| 78 | void OutputToStream(std::ostream* stream) const { |
| 79 | if (empty()) { |
| 80 | *stream << "count=0"; |
| 81 | } else if (all_same()) { |
| 82 | *stream << "count=" << count_ << " curr=" << newest_; |
| 83 | if (count_ > 1) *stream << "(all same)"; |
| 84 | } else { |
| 85 | *stream << "count=" << count_ << " first=" << first_ |
| 86 | << " curr=" << newest_ << " min=" << min_ << " max=" << max_ |
| 87 | << " avg=" << avg() << " std=" << std_deviation(); |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | friend std::ostream& operator<<(std::ostream& stream, |
| 92 | const Stat<ValueType>& stat) { |
no outgoing calls
no test coverage detected