org.ojalgo.random
Class Gamma

java.lang.Object
  extended by java.lang.Number
      extended by org.ojalgo.random.RandomNumber
          extended by org.ojalgo.random.Gamma
All Implemented Interfaces:
Serializable, Function<Double>, NullaryFunction<Double>, Distribution

public class Gamma
extends RandomNumber

Distribution of the sum of aCount random variables with an exponential distribution with parameter aLambda.

Author:
apete
See Also:
Serialized Form

Constructor Summary
Gamma()
           
Gamma(int aCount, double aLambda)
           
 
Method Summary
 double getExpected()
           
 double getVariance()
          Subclasses must override either getStandardDeviation() or getVariance()!
 
Methods inherited from class org.ojalgo.random.RandomNumber
doubleValue, floatValue, getStandardDeviation, intValue, invoke, longValue, toString
 
Methods inherited from class java.lang.Number
byteValue, shortValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Gamma

public Gamma()

Gamma

public Gamma(int aCount,
             double aLambda)
Method Detail

getExpected

public double getExpected()

getVariance

public double getVariance()
Description copied from class: RandomNumber
Subclasses must override either getStandardDeviation() or getVariance()!

Specified by:
getVariance in interface Distribution
Overrides:
getVariance in class RandomNumber
See Also:
Distribution.getStandardDeviation(), Distribution.getVariance()