
17 Apr
2009
17 Apr
'09
7:24 p.m.
Maybe automate the stated requirement?
(not tested):
template<typename D>
struct math_to_random{};
template
make_variate_generator(
G& rng,
const math::exponential_distribution
vg_t;
rd_t rd(dist0.lambda());
return vg_t(rng,dist)
}
etc.
Usage:
... gen;
... vec;
math::exponential_distribution