org.ojalgo.random
Class Gamma
java.lang.Object
java.lang.Number
org.ojalgo.random.RandomNumber
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()! |
Gamma
public Gamma()
Gamma
public Gamma(int aCount,
double aLambda)
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()