folly::QuantileHistogram

A histogram that tracks the locations of a fixed set of quantiles.

Synopsis

Declared in <folly/stats/QuantileHistogram.h>

template<class Q = PredefinedQuantiles::Default>
class [[deprecated("Use TDigest")]] QuantileHistogram;

WARNING

Deprecated: Use TDigest. Use of this entity is allowed but discouraged.

Member Functions

NameDescription
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.

Static Member Functions

NameDescription
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.