]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Documentation for StatHist
authorkinkie@squid-cache.org <>
Wed, 14 Dec 2011 07:35:43 +0000 (08:35 +0100)
committerkinkie@squid-cache.org <>
Wed, 14 Dec 2011 07:35:43 +0000 (08:35 +0100)
src/StatHist.h

index 99374ba676837e316f16a96585415d8c39db438d..9e56a2de09059a64e8261334be9f80b05636343c 100644 (file)
@@ -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 */