1 | #include <boost/random.hpp>
|
---|
2 |
|
---|
3 | int main()
|
---|
4 | {
|
---|
5 | boost::rand48 generator;
|
---|
6 | boost::lognormal_distribution<> dist;
|
---|
7 | boost::variate_generator<boost::rand48, boost::lognormal_distribution<> > rng(generator, dist);
|
---|
8 |
|
---|
9 | double mean = dist.mean();
|
---|
10 | double sigma = dist.sigma();
|
---|
11 | }
|
---|