Commit f40a4d88 authored by Qingpeng Niu's avatar Qingpeng Niu Committed by Facebook Github Bot

Public method to get maxSize for TDigest

Summary: Public method to get `maxSize` for `TDigest`.

Reviewed By: yfeldblum

Differential Revision: D9124932

fbshipit-source-id: 1effab8900c3007f6a92d9d6c1d83189746f4ac6
parent 6b3a5109
...@@ -133,6 +133,10 @@ class TDigest { ...@@ -133,6 +133,10 @@ class TDigest {
return centroids_; return centroids_;
} }
size_t maxSize() const {
return maxSize_;
}
private: private:
std::vector<Centroid> centroids_; std::vector<Centroid> centroids_;
size_t maxSize_; size_t maxSize_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment