|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--statistic.distribution.GenericDistribution | +--statistic.distribution.GenericContinuousDistribution | +--statistic.distribution.LogNormalDistribution
Field Summary | |
static int |
MU
Equation de la densite: f(x)= exp(-( (log(x)-mu) / (sqrt(2)*sigma) )^2)/(sqrt(2*pi)*sigma) where mu = mean of a normally distributed variable sigma = standard deviation of a normally distributed variable x = value at which to evaluate the function, must be > 0 |
static int |
SIGMA
|
Fields inherited from class statistic.distribution.GenericDistribution |
name, paramNames, params |
Fields inherited from interface statistic.RandomGenerator |
random |
Constructor Summary | |
LogNormalDistribution()
|
|
LogNormalDistribution(double[] params)
|
|
LogNormalDistribution(double mu,
double sigma)
|
Method Summary | |
double |
cdf(double x)
Returns the value of the cumulative distribution function at x |
double |
inverseCdf(double x)
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)
Returns the value of the probability distribution function at x |
double |
rand()
Return a random value |
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.GenericContinuousDistribution |
normalStandardCdf |
Methods inherited from class statistic.distribution.GenericDistribution |
getEquation, getName, getParam, getParamName, getParams, getParamsCount, getParamsNames |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static int MU
public static int SIGMA
Constructor Detail |
public LogNormalDistribution()
public LogNormalDistribution(double mu, double sigma) throws java.lang.IllegalArgumentException
public LogNormalDistribution(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 GenericDistribution
public double cdf(double x)
cdf
in class GenericDistribution
public double inverseCdf(double x)
inverseCdf
in class GenericContinuousDistribution
x
- with x>=0 and x<=1public double mean()
mean
in class GenericDistribution
public double var()
var
in class GenericDistribution
public double rand()
GenericDistribution
rand
in class GenericDistribution
public static void main(java.lang.String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |