|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jsim.variate.Variate jsim.variate.HyperGeometric
public class HyperGeometric
Generate a random number from the hypergeometric distribution with population m, number of drawn items n and probability of success p.
Constructor Summary | |
---|---|
HyperGeometric(double m,
double n,
double p,
int i)
Constructs a Hyper-Geometric random variate. |
|
HyperGeometric(int m,
int n,
double p,
int i)
Constructs a Hyper-Geometric random variate. |
Method Summary | |
---|---|
double |
gen()
Generate a random number from the hypergeometric 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 HyperGeometric(int m, int n, double p, int i)
m
- size of populationn
- number of items drawn from populationp
- probability of successi
- streampublic HyperGeometric(double m, double n, double p, int i)
m
- size of populationn
- number of items drawn from populationp
- probability of successi
- streamMethod Detail |
---|
public java.lang.Double[] getParameters()
getParameters
in class Variate
public double gen()
gen
in class Variate
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |