Didn't check it closely, but it looks fine from a quick skim.
Didn't check your logic/math or anything, but looks good...so, this is just like Dist but the buckets change dynamically? Awesome.
Posted (Jan. 8, 2011, 2:32 a.m.)
-
src/base/statistics.hh (Diff revision 1) -
Nate, can you add a function that returns the sum?
Posted (Jan. 8, 2011, 2:35 a.m.)
-
src/base/statistics.hh (Diff revision 1) -
I am using your Histogram class to replace the statistics currently being used in Ruby.
Posted (Jan. 8, 2011, 2:41 a.m.)
-
src/base/statistics.hh (Diff revision 1) -
This line seems to be incorrect. squares is being updated with val*val*number*number. Should it not be val*val*number?
Posted (Jan. 8, 2011, 5:21 a.m.)
How to handle vector of histograms? Should we define a new class similar to VectorDistribution? I have to point out that Ruby also has a vector of vector of histograms in the Profiler class.
Posted (Jan. 8, 2011, 2:26 p.m.)
-
src/base/statistics.hh (Diff revision 1) -
Why do you want this? Generally, we don't expose the internals of stats and I'm reluctant to do so.
