| 140 | } |
| 141 | |
| 142 | void Reset() { |
| 143 | tdigests_[0].resize(0); |
| 144 | tdigests_[1].resize(0); |
| 145 | current_ = 0; |
| 146 | total_weight_ = 0; |
| 147 | min_ = std::numeric_limits<double>::max(); |
| 148 | max_ = std::numeric_limits<double>::lowest(); |
| 149 | merger_.Reset(0, nullptr); |
| 150 | } |
| 151 | |
| 152 | Status Validate() const { |
| 153 | // check weight, centroid order |