public class GammaDistribution extends java.lang.Object implements IDistribution
| Constructor and Description |
|---|
GammaDistribution(double scale,
double shape)
Creates new Gamma Distribution.
|
| Modifier and Type | Method and Description |
|---|---|
double |
DistributionFunction(double x)
Gets the cumulative distribution function (cdf) for this distribution evaluated at point
|
double |
Entropy()
Gets the entropy for this distribution.
|
double |
getScale() |
double |
getShape() |
double |
LogProbabilityDensityFunction(double x)
Gets the log-probability density function (pdf) for this distribution evaluated at point
|
double |
Mean()
Gets the mean for this distribution.
|
double |
Median() |
double |
ProbabilityDensityFunction(double x)
Gets the probability density function (pdf) for this distribution evaluated at point
|
double |
Variance()
Gets the variance for this distribution.
|
public GammaDistribution(double scale,
double shape)
scale - The scale parameter theta.shape - The shape parameter k.public double getScale()
public double getShape()
public double Mean()
IDistributionMean in interface IDistributionpublic double Variance()
IDistributionVariance in interface IDistributionpublic double Median()
public double Entropy()
IDistributionEntropy in interface IDistributionpublic double DistributionFunction(double x)
IDistributionDistributionFunction in interface IDistributionx - A single point in the distribution range.public double ProbabilityDensityFunction(double x)
IDistributionProbabilityDensityFunction in interface IDistributionx - A single point in the distribution range.public double LogProbabilityDensityFunction(double x)
IDistributionLogProbabilityDensityFunction in interface IDistributionx - A single point in the distribution range.