9#ifndef SQUID_SRC_STATHIST_H
10#define SQUID_SRC_STATHIST_H
56 double val(
unsigned int bin)
const;
73 void enumInit(
unsigned int last_enum);
void StatHistBinDumper(StoreEntry *, int idx, double val, double size, int count)
function signature for StatHist dumping functions
StatHistBinDumper statHistEnumDumper
StatHistBinDumper statHistIntDumper
double statHistDeltaMedian(const StatHist &A, const StatHist &B)
double statHistDeltaPctile(const StatHist &A, const StatHist &B, double pctile)
double hbase_f(double)
function signature for in/out StatHist adaptation
double deltaPctile(const StatHist &B, double pctile) const
double val(unsigned int bin) const
double max_
value of the maximum counter in the histogram
double scale_
scaling factor when looking for a bin
void logInit(unsigned int capacity, double min, double max)
StatHist & operator=(const StatHist &)
unsigned int findBin(double v)
bins_type * bins
the histogram counters
void init(unsigned int capacity, hbase_f *val_in, hbase_f *val_out, double min, double max)
void enumInit(unsigned int last_enum)
double min_
minimum value to be stored, corresponding to the first bin
void dump(StoreEntry *sentry, StatHistBinDumper *bd) const
StatHist & operator+=(const StatHist &B)
A const & max(A const &lhs, A const &rhs)
A const & min(A const &lhs, A const &rhs)
void * xcalloc(size_t n, size_t sz)