|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ac.ulg.montefiore.run.distributions.ExponentialDistribution
public class ExponentialDistribution
This class implements an generator of exponentially distributed reals.
Constructor Summary | |
---|---|
ExponentialDistribution(double rate)
Creates a new pseudo-random, exponential distribution which is the distribution of waiting times between two events of a Poisson distribution with rate rate . |
Method Summary | |
---|---|
double |
generate()
Generates a pseudo-random number. |
double |
probability(double n)
Returns the probability (density) of a given number. |
double |
rate()
Returns this distribution's rate. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExponentialDistribution(double rate)
rate
. The mean value of this
distribution is rate-1
.
rate
- The parameter of the distribution.Method Detail |
---|
public double rate()
public double generate()
RandomDistribution
generate
in interface RandomDistribution
public double probability(double n)
RandomDistribution
probability
in interface RandomDistribution
n
- A number.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |