|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--statistic.distribution.GenericDistribution | +--statistic.distribution.GenericDiscreteDistribution | +--statistic.distribution.PoissonDistribution
Field Summary | |
boolean |
cdf
|
Fields inherited from class statistic.distribution.GenericDistribution |
name, paramNames, params |
Fields inherited from interface statistic.RandomGenerator |
random |
Constructor Summary | |
PoissonDistribution()
|
|
PoissonDistribution(double lambda)
Method PoissonDistribution. |
|
PoissonDistribution(double[] params)
|
Method Summary | |
double |
cdf(int x)
Method cdf : Returns the value of the cumulative distribution function at x |
double |
getSumCdf(int k)
|
double |
inverseCdf(double x)
Method inverseCdf : Return the value of Inverse Function at x |
static void |
main(java.lang.String[] args)
Methode: Main pour tester la classe |
double |
mean()
Returns the mean of the distribution |
double |
pdf(double x)
Method pdf : Returns the value of the probability distribution function at x |
int |
randInt()
Method randInt. |
void |
setParam(int idx,
double p)
Positionne la valeur d'un ou de plusieurs parametres |
void |
setParams(double[] params)
|
double |
var()
Returns the variance of the distribution |
Methods inherited from class statistic.distribution.GenericDiscreteDistribution |
cdf, getFMAX, getInitialisationStatus, getKMAX, rand, randIntFast, setInitialisationStatus |
Methods inherited from class statistic.distribution.GenericDistribution |
getEquation, getName, getParam, getParamName, getParams, getParamsCount, getParamsNames, normalStandardCdf |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public final boolean cdf
Constructor Detail |
public PoissonDistribution()
public PoissonDistribution(double lambda) throws java.lang.IllegalArgumentException
lambda
-
java.lang.IllegalArgumentException
- lambda must be > 0public PoissonDistribution(double[] params) throws java.lang.IllegalArgumentException
Method Detail |
public void setParams(double[] params) throws java.lang.IllegalArgumentException
setParams
in class GenericDistribution
java.lang.IllegalArgumentException
public void setParam(int idx, double p) throws java.lang.IllegalArgumentException
GenericDistribution
setParam
in class GenericDistribution
java.lang.IllegalArgumentException
public double pdf(double x)
pdf
in class GenericDiscreteDistribution
public double cdf(int x)
cdf
in class GenericDiscreteDistribution
public double inverseCdf(double x)
x
- with x>=0 and x<=1public double mean()
GenericDistribution
mean
in class GenericDistribution
public double var()
GenericDistribution
var
in class GenericDistribution
public int randInt()
GenericDiscreteDistribution
randInt
in class GenericDiscreteDistribution
public double getSumCdf(int k) throws java.lang.IllegalArgumentException
getSumCdf
in class GenericDiscreteDistribution
java.lang.IllegalArgumentException
public static void main(java.lang.String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |