MCPcopy Create free account
hub / github.com/apache/arrow / Reset

Method Reset

cpp/src/arrow/util/tdigest.cc:142–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

resizeMethod · 0.80
ResetMethod · 0.45

Tested by

no test coverage detected