|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjsim.variate.Variate
jsim.variate.NegativeBinomial
public class NegativeBinomial
Negative Binomial random variate generation.
| Constructor Summary | |
|---|---|
NegativeBinomial(double p,
int n,
int i)
Constructs a Negative Binomial Random variate. |
|
| Method Summary | |
|---|---|
double |
gen()
Generate a random number from the negative binomial distribution. |
java.lang.Double[] |
getParameters()
Get the parameters of the constuctor |
| Methods inherited from class jsim.variate.Variate |
|---|
incStream, printName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NegativeBinomial(double p,
int n,
int i)
p - probability of successn - number of successesi - random number stream| Method Detail |
|---|
public java.lang.Double[] getParameters()
getParameters in class Variatepublic double gen()
gen in class Variate
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||