I made a post sometime last year about requiring a distribution that
could generate enums with specified probabilities. I find I am
regularly requiring a discrete distribution like this - where I
specify the probabilities. Am I the only one who requires it, or would
it be useful to a wider audience? I'm just wondering whether to submit
a feature request for it or not?
Thanks,
Kevin Martin
This is what I'm using at the moment:
template<class IntType = int>
class discrete_distribution
{
public:
typedef boost::uniform_int<>::input_type input_type;
typedef IntType result_type;
template