Boost logo

Boost Users :

Subject: [Boost-users] reference wrapper for Random Distribution?
From: er (erwann.rogard_at_[hidden])
Date: 2009-04-26 13:48:11


er wrote:
>> request for it or not?
>
> A multinomial distribution? Sure, common enough that I would use it.

I am wondering if there already exists a reference wrapper for Random
Distribution. This would help in the following case:

typedef variate_generator<urng_t&,mult_dist_t> vg_t;
mult_dist_t r(range_weight); //creates a vector with partial_sum
std::generate(it,n,vg_t(urng,r));

because it is not unusual that size(range_weight) is big.

Thanks.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net