|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjsim.variate.Variate
jsim.variate.DiscreteProb
public class DiscreteProb
Discrete probability random variate generation.
| Constructor Summary | |
|---|---|
DiscreteProb(double[] cumProb,
double[] value,
int i)
Constructs a Discrete Probability random variate. |
|
| Method Summary | |
|---|---|
double |
gen()
Generate a random number from Discrete Probability distribution. |
| Methods inherited from class jsim.variate.Variate |
|---|
getParameters, incStream, printName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DiscreteProb(double[] cumProb,
double[] value,
int i)
cumProb - cummulative probabilityvalue - value arrayi - random number stream| Method Detail |
|---|
public double gen()
gen in class Variate
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||