
public class LogGammaDistribution extends AbstractDistribution
| Modifier and Type | Class and Description |
|---|---|
static class |
LogGammaDistribution.Parameterizer
Parameterization class
|
| Modifier and Type | Field and Description |
|---|---|
private double |
k
Alpha == k.
|
private double |
shift
Translation offset.
|
private double |
theta
Theta == 1 / Beta.
|
random| Constructor and Description |
|---|
LogGammaDistribution(double k,
double theta,
double shift)
Constructor for Gamma distribution.
|
LogGammaDistribution(double k,
double theta,
double shift,
Random random)
Constructor for Gamma distribution.
|
LogGammaDistribution(double k,
double theta,
double shift,
RandomFactory random)
Constructor for Gamma distribution.
|
| Modifier and Type | Method and Description |
|---|---|
double |
cdf(double val)
Return the cumulative density function at the given value.
|
static double |
cdf(double x,
double k,
double theta,
double shift)
The CDF, static version.
|
double |
getK() |
double |
getTheta() |
static double |
logcdf(double x,
double k,
double theta,
double shift)
The log CDF, static version.
|
double |
nextRandom()
Generate a new random value
|
double |
pdf(double val)
Return the density of an existing value
|
static double |
pdf(double x,
double k,
double theta,
double shift)
LogGamma distribution PDF (with 0.0 for x < 0)
|
double |
quantile(double val)
Quantile aka probit (for normal) aka inverse CDF (invcdf, cdf^-1) function.
|
static double |
quantile(double p,
double k,
double theta,
double shift)
Compute probit (inverse cdf) for LogGamma distributions.
|
String |
toString()
Simple toString explaining the distribution parameters.
|
private final double k
private final double theta
private final double shift
public LogGammaDistribution(double k,
double theta,
double shift,
Random random)
k - k, alpha aka. "shape" parametershift - Location offsettheta - Theta = 1.0/Beta aka. "scaling" parameterrandom - Random generatorpublic LogGammaDistribution(double k,
double theta,
double shift,
RandomFactory random)
k - k, alpha aka. "shape" parametershift - Location offsettheta - Theta = 1.0/Beta aka. "scaling" parameterrandom - Random generatorpublic LogGammaDistribution(double k,
double theta,
double shift)
k - k, alpha aka. "shape" parametertheta - Theta = 1.0/Beta aka. "scaling" parametershift - Location offsetpublic double pdf(double val)
Distributionval - existing valuepublic double cdf(double val)
Distributionval - existing valuepublic double quantile(double val)
Distributionval - Quantile to findpublic double nextRandom()
DistributionnextRandom in interface DistributionnextRandom in class AbstractDistributionpublic String toString()
toString in interface DistributiontoString in class Objectpublic double getK()
public double getTheta()
public static double cdf(double x,
double k,
double theta,
double shift)
x - Valuek - Shape ktheta - Theta = 1.0/Beta aka. "scaling" parameterpublic static double logcdf(double x,
double k,
double theta,
double shift)
x - Valuek - Shape ktheta - Theta = 1.0/Beta aka. "scaling" parameterpublic static double pdf(double x,
double k,
double theta,
double shift)
x - query valuek - Alphatheta - Theta = 1 / Betapublic static double quantile(double p,
double k,
double theta,
double shift)
p - Probabilityk - k, alpha aka. "shape" parametertheta - Theta = 1.0/Beta aka. "scaling" parameter