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

Method Merge

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

merge with another centroid

Source from the content-addressed store, hash-verified

45
46 // merge with another centroid
47 void Merge(const Centroid& centroid) {
48 weight += centroid.weight;
49 mean += (centroid.mean - mean) * centroid.weight / weight;
50 }
51};
52
53// scale function K0: linear function, as baseline

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected