star-sp

Random number generators and distributions
git clone git://git.meso-star.fr/star-sp.git
Log | Files | Refs | README | LICENSE

commit c60b3e5acf1260319b17974bed4846012e51db2a
parent 5ec1c0d0ad2dfd8913aa376663a7d5a6e13ebbaf
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Mon, 12 Oct 2015 11:19:34 +0200

Fix the lognormal distribution

The gaussian distribution was used rather than the lognormal
distribution.

Diffstat:
Msrc/ssp_rng.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ssp_rng.c b/src/ssp_rng.c @@ -724,7 +724,7 @@ ssp_ran_lognormal { ASSERT(rng); rng_cxx rng_cxx(*rng); - RAN_NAMESPACE::normal_distribution<double> distribution(zeta, sigma); + RAN_NAMESPACE::lognormal_distribution<double> distribution(zeta, sigma); return distribution(rng_cxx); }