star-sp

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

commit b3b9832977688eb54898dda7f530875d93455e72
parent e795e76cd037c4931db6ea7d0fc36a551d3b6a09
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Thu, 25 Jun 2015 15:26:16 +0200

Update the ssp_ran_exp comment

The comment on the pdf of the exponential distribution was wrong with
respect to the computation that was effectively performed.

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

diff --git a/src/ssp.h b/src/ssp.h @@ -202,7 +202,7 @@ ssp_rng_proxy_create_rng * Miscellaneous distributions ******************************************************************************/ /* Random variate from the exponential distribution with mean `mu': - * P(x) dx = 1 / mu * exp (-x/mu) dx */ + * P(x) dx = mu * exp(-x * mu) dx */ SSP_API double ssp_ran_exp (struct ssp_rng* rng,