|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.realtime.DSS.Normal
Erand objects represent normally
distributed pseudo random number streams.
| Field Summary | |
protected double |
mean
Mean of this normal distribution |
protected double |
standardDeviation
Standard deviation of this distribution |
| Constructor Summary | |
Normal(double mean,
double standardDeviation)
|
|
| Method Summary | |
double |
draw()
Draw the next number in this stream. |
double |
nonDeterministicDraw(int howMany)
Draw several numbers from this stream. |
double |
threeChoice()
In a normal distribution probability of being in the range mean +/- one standard deviation is about 67% |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected double mean
protected double standardDeviation
| Constructor Detail |
public Normal(double mean,
double standardDeviation)
| Method Detail |
public double draw()
public double nonDeterministicDraw(int howMany)
howMany parameter
howMany
drawn numbers.
howMany - The number of numbers to be drawn.
public double threeChoice()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||