|
||||||||||
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.LogisticDistribution
public class LogisticDistribution
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
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 |
---|
public LogisticDistribution(double mu, double sigma)
mu
- The location parameter of the logistic distribution.sigma
- The scale parameter of the logistic distribution.Method Detail |
---|
public double generate()
double
value according to the logistic distribution.
generate
in interface Distribution
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |