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

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

public class LogisticDistribution
extends java.lang.Object
implements Distribution

This class implements a logistic distribution. The pdf of the distribution is 1/sigma * exp((x-mu)/sigma) / (1+exp((x-mu)/sigma))^2.

Implementation: inversion technique.

Creation date: 14-juil.-2005

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

Constructor Summary
LogisticDistribution(double mu, double sigma)
          Initialises a newly created logistic distribution.
 
Method Summary
 double generate()
          Returns a double value according to the logistic distribution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogisticDistribution

public LogisticDistribution(double mu,
                            double sigma)
Initialises a newly created logistic distribution.

Parameters:
mu - The location parameter of the logistic distribution.
sigma - The scale parameter of the logistic distribution.
Method Detail

generate

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

Specified by:
generate in interface Distribution


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