statistic.distribution
Class ExponentialDistribution

java.lang.Object
  |
  +--statistic.distribution.GenericDistribution
        |
        +--statistic.distribution.GenericContinuousDistribution
              |
              +--statistic.distribution.ExponentialDistribution
All Implemented Interfaces:
RandomGenerator

public class ExponentialDistribution
extends GenericContinuousDistribution
implements RandomGenerator


Field Summary
static int LAMBDA
          Equation de la densite: f(x)= 1/lambda * exp(-x/lambda) pour x>0, lambda>0 where 1/lambda = mean time of a process
 
Fields inherited from class statistic.distribution.GenericDistribution
name, paramNames, params
 
Fields inherited from interface statistic.RandomGenerator
random
 
Constructor Summary
ExponentialDistribution()
           
ExponentialDistribution(double unLambda)
           
ExponentialDistribution(double[] desParams)
           
 
Method Summary
 double cdf(double x)
          Returns the value of the cumulative distribution function at x (=Fonction de repartition)
 java.lang.String getEquation()
           
 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
 double var()
          Returns the variance of the distribution
 
Methods inherited from class statistic.distribution.GenericContinuousDistribution
normalStandardCdf
 
Methods inherited from class statistic.distribution.GenericDistribution
getName, getParam, getParamName, getParams, getParamsCount, getParamsNames, setParam, setParams
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LAMBDA

public static int LAMBDA
Equation de la densite: f(x)= 1/lambda * exp(-x/lambda) pour x>0, lambda>0 where 1/lambda = mean time of a process

Constructor Detail

ExponentialDistribution

public ExponentialDistribution()

ExponentialDistribution

public ExponentialDistribution(double unLambda)
                        throws java.lang.IllegalArgumentException

ExponentialDistribution

public ExponentialDistribution(double[] desParams)
                        throws java.lang.IllegalArgumentException
Method Detail

getEquation

public java.lang.String getEquation()
Overrides:
getEquation in class GenericDistribution

pdf

public double pdf(double x)
Returns the value of the probability distribution function at x

Specified by:
pdf in class GenericDistribution

cdf

public double cdf(double x)
Returns the value of the cumulative distribution function at x (=Fonction de repartition)

Specified by:
cdf in class GenericDistribution

inverseCdf

public double inverseCdf(double x)
                  throws java.lang.IllegalArgumentException
Return the value of Inverse Function at x

Specified by:
inverseCdf in class GenericContinuousDistribution
Parameters:
x - with x>=0 and x<=1
java.lang.IllegalArgumentException

mean

public double mean()
Description copied from class: GenericDistribution
Returns the mean of the distribution

Specified by:
mean in class GenericDistribution

var

public double var()
Description copied from class: GenericDistribution
Returns the variance of the distribution

Specified by:
var in class GenericDistribution

rand

public double rand()
Description copied from class: GenericDistribution
Return a random value

Overrides:
rand in class GenericDistribution

main

public static void main(java.lang.String[] args)
Methode: Main pour tester la classe