$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Eric Niebler (eric_at_[hidden])
Date: 2008-01-30 11:00:59
Neal Becker wrote:
> I see accumulators::density is almost what I want. I need a histogram, but
> it want to specify in advance the number of bins and the bin size. This is
> really a simplified accumulators::density.
>
> I think it would be good to add this to accumulators::density.
Do these help?
tag::density::cache_size
Number of first samples used to determine min and max.
tag::density::num_bins
Number of bins (two additional bins collect under-
and overflow samples).
They are named parameters that you can specify to an accumulator_set's
constructor.
accumulator_set<double, features<tag::density> > acc(
tag::density::cache_size = 10
tag::density::num_bins = 20
);
HTH,
-- Eric Niebler Boost Consulting www.boost-consulting.com