|
Boost Users : |
Subject: Re: [Boost-users] [random] Cauchy distribution
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2011-07-14 12:17:34
AMDG
On 07/14/2011 09:04 AM, Karsten Ahnert wrote:
> Btw. are there any factory functions for the variate_generator?
> Something like
>
> make_variate_generator( rng , cauchy )
>
> which could be nicely use when filling containers with random numbers
>
> generate( x.begin() , x.end() ,
> make_variate_generator( rng , cauchy ) );
>
I considered it, but in 1.47, you should be able to use
boost::bind(cauchy, boost::ref(rng))
In Christ,
Steven Watanabe
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