@Alias(value="exgaussian") public class ExponentiallyModifiedGaussianDistribution extends AbstractDistribution
Modifier and Type | Class and Description |
---|---|
static class |
ExponentiallyModifiedGaussianDistribution.Parameterizer
Parameterization class
|
Modifier and Type | Field and Description |
---|---|
private double |
lambda
Exponential rate.
|
private double |
mean
Mean value for the generator
|
private double |
stddev
Standard deviation
|
random
Constructor and Description |
---|
ExponentiallyModifiedGaussianDistribution(double mean,
double stddev,
double lambda)
Constructor for ExGaussian distribution
|
ExponentiallyModifiedGaussianDistribution(double mean,
double stddev,
double lambda,
java.util.Random random)
Constructor for ExGaussian distribution
|
ExponentiallyModifiedGaussianDistribution(double mean,
double stddev,
double lambda,
RandomFactory random)
Constructor for ExGaussian 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 sigma,
double lambda)
Cumulative probability density function (CDF) of an exgauss distribution.
|
double |
getLambda() |
double |
getMean() |
double |
getStddev() |
double |
logpdf(double val)
Return the log density of an existing value
|
static double |
logpdf(double x,
double mu,
double sigma,
double lambda)
Probability density function of the ExGaussian 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 sigma,
double lambda)
Probability density function of the ExGaussian distribution.
|
double |
quantile(double q)
Deprecated.
Not yet implemented!
|
static double |
quantile(double x,
double mu,
double sigma,
double lambda)
Deprecated.
Not yet implemented!
|
java.lang.String |
toString()
Describe the distribution
|
private double mean
private double stddev
private double lambda
public ExponentiallyModifiedGaussianDistribution(double mean, double stddev, double lambda, java.util.Random random)
mean
- Meanstddev
- Standard Deviationlambda
- Raterandom
- Randompublic ExponentiallyModifiedGaussianDistribution(double mean, double stddev, double lambda, RandomFactory random)
mean
- Meanstddev
- Standard Deviationlambda
- Raterandom
- Randompublic ExponentiallyModifiedGaussianDistribution(double mean, double stddev, double lambda)
mean
- Meanstddev
- Standard Deviationlambda
- Ratepublic double pdf(double val)
Distribution
val
- existing valuepublic double logpdf(double val)
Distribution
val
- existing valuepublic double cdf(double val)
Distribution
val
- existing value@Deprecated public double quantile(double q)
Distribution
q
- Quantile to findpublic double nextRandom()
Distribution
nextRandom
in interface Distribution
nextRandom
in class AbstractDistribution
public java.lang.String toString()
Distribution
toString
in interface Distribution
toString
in class java.lang.Object
public double getMean()
public double getStddev()
public double getLambda()
public static double pdf(double x, double mu, double sigma, double lambda)
x
- The value.mu
- The mean.sigma
- The standard deviation.lambda
- Rate parameter.public static double logpdf(double x, double mu, double sigma, double lambda)
x
- The value.mu
- The mean.sigma
- The standard deviation.lambda
- Rate parameter.public static double cdf(double x, double mu, double sigma, double lambda)
x
- value to evaluate CDF at.mu
- Mean value.sigma
- Standard deviation.lambda
- Rate parameter.@Deprecated public static double quantile(double x, double mu, double sigma, double lambda)
x
- value to evaluate probit function at.mu
- Mean value.sigma
- Standard deviation.lambda
- Rate parameter.Copyright © 2019 ELKI Development Team. License information.