From 6278cecc9a754709f28e4addf8ebb1293bc37bf2 Mon Sep 17 00:00:00 2001 From: "kinkie@squid-cache.org" <> Date: Wed, 14 Dec 2011 08:35:43 +0100 Subject: [PATCH] Documentation for StatHist --- src/StatHist.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/StatHist.h b/src/StatHist.h index 99374ba676..9e56a2de09 100644 --- a/src/StatHist.h +++ b/src/StatHist.h @@ -82,13 +82,19 @@ public: */ void enumInit(int last_enum); protected: - /// low-level initialize function + /// low-level initialize function. called by *Init high-level functions void init(int capacity, hbase_f * val_in, hbase_f * val_out, double min, double max); + /// find what entry in the histogram corresponds to v, by applying + /// the preset input transformation function int findBin(double v); + /// the histogram counters int *bins; int capacity; + /// minimum value to be stored, corresponding to the first bin double min; + /// value of the maximum counter in the histogram double max; + /// scaling factor when looking for a bin double scale; hbase_f *val_in; /* e.g., log() for log-based histogram */ hbase_f *val_out; /* e.g., exp() for log based histogram */ -- 2.47.3