|
||||||||||
| 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.NormalDistribution
public class NormalDistribution
This class implements a Normal distribution.
Creation date: 1-Jan-2004
| Constructor Summary | |
|---|---|
NormalDistribution()
Initialises a newly created normal distribution with mean equals to 0 and standard deviation equals to 1. |
|
NormalDistribution(double mean,
double stdDeviation)
Initialises a newly created NormalDistribution object. |
|
| Method Summary | |
|---|---|
double |
generate()
Returns a double value according to the Normal
distribution. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NormalDistribution()
public NormalDistribution(double mean,
double stdDeviation)
NormalDistribution object.
mean - The mean of the distribution.stdDeviation - The standard deviation of the distribution.
java.lang.IllegalArgumentException - If stdDeviation is <= 0.| Method Detail |
|---|
public double generate()
double value according to the Normal
distribution.
generate in interface Distribution
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||