public class Gamma extends RandomNumber
BasicFunction.Differentiable<N extends Number,F extends BasicFunction>, BasicFunction.Integratable<N extends Number,F extends BasicFunction>, BasicFunction.PlainUnary<T,R>
Constructor and Description |
---|
Gamma() |
Gamma(double aShape,
double aRate) |
Modifier and Type | Method and Description |
---|---|
protected double |
generate()
A Convenient Way of Generating Gamma Random Variables Using Generalized Exponential Distribution
|
double |
getExpected() |
double |
getVariance()
Subclasses must override either getStandardDeviation() or getVariance()!
|
checkProbabilty, doubleValue, floatValue, getStandardDeviation, intValue, invoke, longValue, newSampleSet, random, setSeed, toString
byteValue, shortValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
andThen, get, getAsDouble
public double getExpected()
public double getVariance()
RandomNumber
getVariance
in interface Distribution
getVariance
in class RandomNumber
Distribution.getStandardDeviation()
,
Distribution.getVariance()
protected double generate()
generate
in class RandomNumber
RandomNumber.generate()
Copyright © 2019 Optimatika. All rights reserved.