A histogram that tracks the locations of a fixed set of quantiles.
Declared in <folly/stats/QuantileHistogram.h>
template<class Q = PredefinedQuantiles::Default>
class [[deprecated("Use TDigest")]] QuantileHistogram;
Deprecated: Use TDigest. Use of this entity is allowed but discouraged.
| Name | Description |
|---|---|
QuantileHistogram [constructor] | Constructors |
addValue | Add a single value to the histogram. |
count | Return the number of values added to the histogram. |
debugString | Return a human-readable representation of the histogram for debugging. |
empty | Return true if no values have been added to the histogram. |
estimateQuantile | Estimates the value of the given quantile. |
max | Return the largest value tracked by the histogram. |
merge | Merge the given unsorted values into a copy of this histogram. |
min | Return the smallest value tracked by the histogram. |
| Name | Description |
|---|---|
merge | Combines the given histograms into a new histogram where the locations for each tracked quantile is the weighted average of the corresponding quantile locations. The min and max for the new histogram will be the smallest min or the largest max of all of the given histograms. |
quantiles | Return the array of quantiles tracked by this histogram. |