@Alias(value={"invgauss","wald","de.lmu.ifi.dbs.elki.math.statistics.distribution.WaldDistribution"}) public class InverseGaussianDistribution extends AbstractDistribution
InverseGaussian(a, x) ~ scipy.stats.invgauss(a/x, x)
Our parameter scheme is in line with common literature. SciPy naming scheme
has comparable notion of location and scale across distributions. So both
have their benefits.| Modifier and Type | Class and Description |
|---|---|
static class |
InverseGaussianDistribution.Parameterizer
Parameterization class
|
| Modifier and Type | Field and Description |
|---|---|
private double |
mean
Location value
|
private double |
shape
Shape parameter
|
random| Constructor and Description |
|---|
InverseGaussianDistribution(double mean,
double shape)
Constructor for Gaussian distribution
|
InverseGaussianDistribution(double mean,
double shape,
java.util.Random random)
Constructor for wald distribution
|
InverseGaussianDistribution(double mean,
double shape,
RandomFactory random)
Constructor for wald 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 mu,
double shape)
Cumulative probability density function (CDF) of a Wald distribution.
|
double |
getMean()
Mean parameter.
|
double |
getShape()
Shape parameter.
|
double |
logpdf(double val)
Return the log density of an existing value
|
static double |
logpdf(double x,
double mu,
double shape)
Probability density function of the Wald distribution.
|
double |
nextRandom()
Generate a new random value
|
double |
pdf(double val)
Return the density of an existing value
|
static double |
pdf(double x,
double mu,
double shape)
Probability density function of the Wald distribution.
|
double |
quantile(double q)
Deprecated.
NOT YET IMPLEMENTED.
|
static double |
quantile(double x,
double mu,
double shape)
Deprecated.
NOT YET IMPLEMENTED.
|
java.lang.String |
toString()
Describe the distribution
|
public InverseGaussianDistribution(double mean,
double shape,
java.util.Random random)
mean - Meanshape - Shape parameterrandom - Random generatorpublic InverseGaussianDistribution(double mean,
double shape,
RandomFactory random)
mean - Meanshape - Shape parameterrandom - Random generatorpublic InverseGaussianDistribution(double mean,
double shape)
mean - Meanshape - Shape parameterpublic double getMean()
public double getShape()
public double pdf(double val)
Distributionval - existing valuepublic double logpdf(double val)
Distributionval - existing valuepublic double cdf(double val)
Distributionval - existing value@Deprecated public double quantile(double q)
Distributionq - Quantile to findpublic double nextRandom()
DistributionnextRandom in interface DistributionnextRandom in class AbstractDistributionpublic java.lang.String toString()
DistributiontoString in interface DistributiontoString in class java.lang.Objectpublic static double pdf(double x,
double mu,
double shape)
x - The value.mu - The mean.shape - Shape parameterpublic static double logpdf(double x,
double mu,
double shape)
x - The value.mu - The mean.shape - Shape parameterpublic static double cdf(double x,
double mu,
double shape)
x - value to evaluate CDF atmu - Mean valueshape - Shape parameter@Deprecated
public static double quantile(double x,
double mu,
double shape)
x - value to evaluate probit function atmu - Mean valueshape - Shape parameterCopyright © 2019 ELKI Development Team. License information.