|
SSJ V. labo. |
||||||||
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.NegativeBinomialDist
public class NegativeBinomialDist
.
Field Summary | |
---|---|
static double |
MAXN
. |
Fields inherited from class umontreal.iro.lecuyer.probdist.DiscreteDistributionInt |
---|
EPSILON |
Constructor Summary | |
---|---|
NegativeBinomialDist(double n,
double p)
. |
Method Summary | |
---|---|
static double |
barF(double n,
double p,
int x)
. |
double |
barF(int x)
Returns bar(F)(x), the complementary distribution function. |
static double |
cdf(double n,
double p,
int x)
. |
double |
cdf(int x)
Returns the distribution function F evaluated at x (see). |
double |
getGamma()
Deprecated. |
static NegativeBinomialDist |
getInstanceFromMLE(int[] x,
int m)
. |
static NegativeBinomialDist |
getInstanceFromMLE(int[] x,
int m,
double n)
. |
static NegativeBinomialDist |
getInstanceFromMLE1(int[] x,
int m,
double p)
. |
double |
getMean()
. |
static double |
getMean(double n,
double p)
. |
static double[] |
getMLE(int[] x,
int m)
. |
static double[] |
getMLE(int[] x,
int m,
double n)
. |
static double[] |
getMLE1(int[] x,
int m,
double p)
. |
static double |
getMLEninv(int[] x,
int m)
. |
double |
getN()
. |
double |
getP()
. |
double[] |
getParams()
. |
double |
getStandardDeviation()
. |
static double |
getStandardDeviation(double n,
double p)
. |
double |
getVariance()
. |
static double |
getVariance(double n,
double p)
. |
static int |
inverseF(double n,
double p,
double u)
. |
int |
inverseFInt(double u)
Returns the inverse distribution function F-1(u), where 0 <= u <= 1. |
static double |
prob(double n,
double p,
int x)
. |
double |
prob(int x)
Returns p(x), the probability of x. |
void |
setParams(double n,
double p)
. |
String |
toString()
. |
Methods inherited from class umontreal.iro.lecuyer.probdist.DiscreteDistributionInt |
---|
barF, cdf, getXinf, getXsup, inverseF |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static double MAXN
Constructor Detail |
---|
public NegativeBinomialDist(double n, double p)
Method Detail |
---|
public double prob(int x)
DiscreteDistributionInt
prob
in class DiscreteDistributionInt
x
- value at which the mass function must be evaluated
public double cdf(int x)
DiscreteDistributionInt
cdf
in class DiscreteDistributionInt
x
- value at which the distribution function must be evaluated
public double barF(int x)
DiscreteDistributionInt
barF
in class DiscreteDistributionInt
x
- value at which the complementary distribution function
must be evaluated
public int inverseFInt(double u)
DiscreteDistributionInt
inverseFInt
in class DiscreteDistributionInt
u
- value in the interval (0, 1) for which
the inverse distribution function is evaluated
public double getMean()
Distribution
public double getVariance()
Distribution
public double getStandardDeviation()
Distribution
public static double prob(double n, double p, int x)
public static double cdf(double n, double p, int x)
public static double barF(double n, double p, int x)
public static int inverseF(double n, double p, double u)
public static double[] getMLE(int[] x, int m, double n)
public static NegativeBinomialDist getInstanceFromMLE(int[] x, int m, double n)
public static double[] getMLE1(int[] x, int m, double p)
public static NegativeBinomialDist getInstanceFromMLE1(int[] x, int m, double p)
public static double[] getMLE(int[] x, int m)
public static NegativeBinomialDist getInstanceFromMLE(int[] x, int m)
public static double getMLEninv(int[] x, int m)
public static double getMean(double n, double p)
public static double getVariance(double n, double p)
public static double getStandardDeviation(double n, double p)
@Deprecated public double getGamma()
public double getN()
public double getP()
public void setParams(double n, double p)
public double[] getParams()
public String toString()
toString
in class Object
|
SSJ V. labo. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |