Add CDF utility

Compute CDF from input data without binning.
it is true that this is not memory-saving.
our problem was that we wanted to fit to the histogram without binning and
that is the only way that we could think of.
for discrete input it should be possible to have values larger than 1 in
the map which would save space.
maybe we can template it on the key type?

On Saturday, 13 September 2014, Jacob Stevenson <notifications@github.com>
wrote:

> In source/mcpele/cdf_accumulator.h:
>
> > @@ -0,0 +1,23 @@
> > +#ifndef _MCPELE_CDF_ACCUMULATOR_H
> > +#define _MCPELE_CDF_ACCUMULATOR_H
> > +
> > +#include <map>
> > +#include <vector>
> > +
> > +namespace mcpele{
> > +
> > +class CDFAccumulator {
> > +private:
> > +    std::map<double, size_t> m_data_x;
>
> A map with a double as the key? How is this supposed to work? won't you
> just get a map that grows unbounded?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/pele-python/mcpele/pull/34/files#r17511322>.
>