28 for (
unsigned int n = 0; n < 100; ++n) {
35 double epsilon = 1e-6;
36 for (
unsigned int n = 0; n <= 100; ++n) {
37 double pct = n / 100.0;
44 double highPct = -1.0;
45 unsigned int bucketIdx =
55 double highPct = -1.0;
56 unsigned int bucketIdx =
73 for (
unsigned int n = 0; n <= 100; ++n) {
74 double pct = n / 100.0;
77 double highPct = -1.0;
93 for (
unsigned int n = 0; n < 100; ++n) {
94 double pct = n / 100.0;
97 double highPct = -1.0;
112 for (
unsigned int n = 0; n < 9; ++n) {
131 for (
unsigned int n = 0; n < 9; ++n) {
146 for (
unsigned int n = 0; n < 9; ++n) {
159 for (
double n = 50; n < 5000; n += 100) {
170 for (
double n = 50; n < 5000; n += 100) {
191 for (
double n = 0; n < 7; n += 1) {
ValueType getPercentileEstimate(double pct) const
void addValue(ValueType value)
size_t getPercentileBucketIdx(double pct, double *lowPct=nullptr, double *highPct=nullptr) const
const Bucket & getBucketByIndex(size_t idx) const
#define EXPECT_EQ(val1, val2)
uint64_t computeTotalCount() const
#define EXPECT_FLOAT_EQ(val1, val2)
size_t getNumBuckets() const
#define EXPECT_NEAR(val1, val2, abs_error)