|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ac.ulg.montefiore.run.totem.util.distribution.LogNormalDistribution
public class LogNormalDistribution
This class implements a lognormal distribution. A random variable X has a lognormal distribution if the random variable ln X has a normal distribution.
Creation date: 14-juil.-2005
Constructor Summary | |
---|---|
LogNormalDistribution(double mu,
double sigma)
Initialises a newly created lognormal distribution. |
Method Summary | |
---|---|
double |
generate()
Returns a double value according to the lognormal
distribution. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LogNormalDistribution(double mu, double sigma)
mu
- The scale parameter of the lognormal distribution.sigma
- The shape parameter of the lognormal distribution.
java.lang.IllegalArgumentException
- If sigma
is <= 0.Method Detail |
---|
public double generate()
double
value according to the lognormal
distribution.
generate
in interface Distribution
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |