be.ac.ulg.montefiore.run.totem.util.distribution
Class LogNormalDistribution

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.util.distribution.LogNormalDistribution
All Implemented Interfaces:
Distribution

public class LogNormalDistribution
extends java.lang.Object
implements Distribution

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

Author:
Jean Lepropre (lepropre@run.montefiore.ulg.ac.be)

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

LogNormalDistribution

public LogNormalDistribution(double mu,
                             double sigma)
Initialises a newly created lognormal distribution.

Parameters:
mu - The scale parameter of the lognormal distribution.
sigma - The shape parameter of the lognormal distribution.
Throws:
java.lang.IllegalArgumentException - If sigma is <= 0.
Method Detail

generate

public double generate()
Returns a double value according to the lognormal distribution.

Specified by:
generate in interface Distribution


Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.