|
Boost Users : |
Subject: Re: [Boost-users] Generating Numbers With Certain Distribution with Boost
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-02-10 21:44:54
AMDG
Gundala Viswanath wrote:
> Is there a way to generate K numbers of integer (K = 10^6).
> The maximum value of the integer is 200,000 and minimum is 1.
>
> And the occurrences of this integer follows
> a lognormal distribution.
>
There's a floating point lognormal distribution in Boost.Random.
http://www.boost.org/libs/random/random-distributions.html#lognormal_distribution
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