From 5b90ecc662a6f8823ab3bbfc2dcd1bcaa470b1ef Mon Sep 17 00:00:00 2001 From: Tom Henderson Date: Tue, 14 Jun 2011 21:16:34 -0700 Subject: [PATCH] Fix LogNormalVariable distribution documentation --- src/core/model/random-variable.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/model/random-variable.h b/src/core/model/random-variable.h index f4f3b9869..3241c05ed 100644 --- a/src/core/model/random-variable.h +++ b/src/core/model/random-variable.h @@ -603,10 +603,10 @@ public: * where \f$ mean = e^{\mu+\frac{\sigma^2}{2}} \f$ and * \f$ variance = (e^{\sigma^2}-1)e^{2\mu+\sigma^2}\f$ * - * The \f$ \mu \f$ and \f$ \sigma \f$ parameters can be calculated from the mean - * and standard deviation with the following equations: - * \f$ \mu = ln(mean) - \frac{1}{2}ln\left(1+\frac{stddev}{mean^2}\right)\f$, and, - * \f$ \sigma = \sqrt{ln\left(1+\frac{stddev}{mean^2}\right)}\f$ + * The \f$ \mu \f$ and \f$ \sigma \f$ parameters can be calculated if instead + * the mean and variance are known with the following equations: + * \f$ \mu = ln(mean) - \frac{1}{2}ln\left(1+\frac{variance}{mean^2}\right)\f$, and, + * \f$ \sigma = \sqrt{ln\left(1+\frac{variance}{mean^2}\right)}\f$ */ class LogNormalVariable : public RandomVariable {