|
SSJ V. 1.1.9. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectumontreal.iro.lecuyer.probdist.DiscreteDistributionInt
umontreal.iro.lecuyer.probdist.HypergeometricDist
public class HypergeometricDist
Extends the class DiscreteDistributionInt for
the hypergeometric distribution with
k elements choosen among l, m being
of one type, and l - m of the other.
The parameters m, k and l are positive integers
where
1 <= m <= l and
1 <= k <= l.
Its mass function is given by
BinomialDist.
| Field Summary | |
|---|---|
static double |
MAXN
|
| Fields inherited from class umontreal.iro.lecuyer.probdist.DiscreteDistributionInt |
|---|
EPSILON |
| Constructor Summary | |
|---|---|
HypergeometricDist(int m,
int l,
int k)
Constructs an hypergeometric distribution with parameters m, l and k. |
|
| Method Summary | |
|---|---|
double |
barF(int x)
Returns bar(F)(x), the complementary distribution function. |
static double |
barF(int m,
int l,
int k,
int x)
Computes the complementary distribution function bar(F)(x). |
double |
cdf(int x)
Returns the distribution function F evaluated at x (see). |
static double |
cdf(int m,
int l,
int k,
int x)
Computes the distribution function F(x). |
int |
getK()
Returns the k associated with this object. |
int |
getL()
Returns the l associated with this object. |
int |
getM()
Returns the m associated with this object. |
int |
inverseF(double u)
Returns the inverse distribution function F-1(u), where 0 <= u <= 1. |
static int |
inverseF(int m,
int l,
int k,
double u)
Computes F-1(u) for the hypergeometric distribution without using precomputed tables. |
double |
prob(int x)
Returns p(x), the probability of x, which should be a real number in the interval [0, 1]. |
static double |
prob(int m,
int l,
int k,
int x)
Computes the probability mass function p(x). |
void |
setParams(int m,
int l,
int k)
Resets the parameters of this object to m, l and k. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static double MAXN
| Constructor Detail |
|---|
public HypergeometricDist(int m,
int l,
int k)
| Method Detail |
|---|
public double prob(int x)
DiscreteDistributionInt
prob in class DiscreteDistributionIntx - value at which the mass function must be evaluated
public double cdf(int x)
DiscreteDistributionInt
cdf in class DiscreteDistributionIntx - value at which the distribution function must be evaluated
public double barF(int x)
DiscreteDistributionInt
barF in class DiscreteDistributionIntx - value at which the complementary distribution function
must be evaluated
public int inverseF(double u)
DiscreteDistributionInt
inverseF in class DiscreteDistributionIntu - value in the interval (0, 1) for which
the inverse distribution function is evaluated
public static double prob(int m,
int l,
int k,
int x)
public static double cdf(int m,
int l,
int k,
int x)
public static double barF(int m,
int l,
int k,
int x)
public static int inverseF(int m,
int l,
int k,
double u)
public int getM()
public int getL()
public int getK()
public void setParams(int m,
int l,
int k)
|
SSJ V. 1.1.9. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||