|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.x8ing.mc.distribution.RandomDistributionGauss
public class RandomDistributionGauss
Uses an open library by cern.ch
http://spi.cern.ch/extsoft/packages.php?pkg=Colt
http://dsd.lbl.gov/~hoschek/colt/
Constructor Summary | |
---|---|
RandomDistributionGauss(double min,
double max,
int nStdDeviations)
nStdDeviations = percentage 1 = 0.682689492137 2 = 0.954499736104 3 = 0.997300203937 4 = 0.999936657516 5 = 0.999999426697 6 = 0.999999998027 |
Method Summary | |
---|---|
double |
getNextRandomNumber()
Returns the the distribution normalized between 0..1 and the the values 0...1. |
void |
init(double min,
double max,
int nStdDeviations)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RandomDistributionGauss(double min, double max, int nStdDeviations)
nStdDeviations = percentage
1 = 0.682689492137
2 = 0.954499736104
3 = 0.997300203937
4 = 0.999936657516
5 = 0.999999426697
6 = 0.999999998027
min
- the minimal return valuemax
- the maximum return valuenStdDeviations:
- e.g. 1,2,3 etc... as described above..Method Detail |
---|
public void init(double min, double max, int nStdDeviations)
public double getNextRandomNumber()
RandomDistribution
getNextRandomNumber
in interface RandomDistribution
RandomDistribution.getNextRandomNumber()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |