proxygen
|
#include <QuantileEstimator.h>
Public Types | |
using | TimePoint = typename ClockT::time_point |
Public Member Functions | |
SlidingWindowQuantileEstimator (std::chrono::seconds windowDuration, size_t nWindows=60) | |
QuantileEstimates | estimateQuantiles (Range< const double * > quantiles, TimePoint now=ClockT::now()) |
void | addValue (double value, TimePoint now=ClockT::now()) |
void | flush () |
Flush buffered values. More... | |
Private Attributes | |
detail::BufferedSlidingWindow< TDigest, ClockT > | bufferedSlidingWindow_ |
Definition at line 62 of file QuantileEstimator.h.
using folly::SlidingWindowQuantileEstimator< ClockT >::TimePoint = typename ClockT::time_point |
Definition at line 64 of file QuantileEstimator.h.
folly::SlidingWindowQuantileEstimator< ClockT >::SlidingWindowQuantileEstimator | ( | std::chrono::seconds | windowDuration, |
size_t | nWindows = 60 |
||
) |
Definition at line 50 of file QuantileEstimator-defs.h.
void folly::SlidingWindowQuantileEstimator< ClockT >::addValue | ( | double | value, |
TimePoint | now = ClockT::now() |
||
) |
Definition at line 65 of file QuantileEstimator-defs.h.
References folly::SlidingWindowQuantileEstimator< ClockT >::bufferedSlidingWindow_.
Referenced by TEST().
QuantileEstimates folly::SlidingWindowQuantileEstimator< ClockT >::estimateQuantiles | ( | Range< const double * > | quantiles, |
TimePoint | now = ClockT::now() |
||
) |
Definition at line 56 of file QuantileEstimator-defs.h.
References folly::SlidingWindowQuantileEstimator< ClockT >::bufferedSlidingWindow_, folly::detail::estimatesFromDigest(), and folly::TDigest::merge().
|
inline |
Flush buffered values.
Definition at line 77 of file QuantileEstimator.h.
|
private |
Definition at line 82 of file QuantileEstimator.h.
Referenced by folly::SlidingWindowQuantileEstimator< ClockT >::addValue(), and folly::SlidingWindowQuantileEstimator< ClockT >::estimateQuantiles().