@Alias(value="exgaussian") public class ExponentiallyModifiedGaussianDistribution extends Object implements DistributionWithRandom
Modifier and Type | Class and Description |
---|---|
static class |
ExponentiallyModifiedGaussianDistribution.OlivierNorbergEstimator
Naive distribution estimation using mean and sample variance.
|
Modifier and Type | Field and Description |
---|---|
private double |
lambda
Exponential rate.
|
private double |
mean
Mean value for the generator
|
static ExponentiallyModifiedGaussianDistribution.OlivierNorbergEstimator |
OLIVIER_NORBERG_ESTIMATOR
Static estimator class.
|
private Random |
rnd
Random generator.
|
private double |
stddev
Standard deviation
|
Constructor and Description |
---|
ExponentiallyModifiedGaussianDistribution(double mean,
double stddev,
double lambda)
Constructor for ExGaussian distribution
|
ExponentiallyModifiedGaussianDistribution(double mean,
double stddev,
double lambda,
Random rnd)
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 |
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!
|
String |
toString()
Describe the distribution
|
public static ExponentiallyModifiedGaussianDistribution.OlivierNorbergEstimator OLIVIER_NORBERG_ESTIMATOR
private double mean
private double stddev
private double lambda
private Random rnd
public ExponentiallyModifiedGaussianDistribution(double mean, double stddev, double lambda, Random rnd)
mean
- Meanstddev
- Standard Deviationlambda
- Raternd
- Randompublic ExponentiallyModifiedGaussianDistribution(double mean, double stddev, double lambda)
mean
- Meanstddev
- Standard Deviationlambda
- Ratepublic double pdf(double val)
Distribution
pdf
in interface Distribution
val
- existing valuepublic double cdf(double val)
Distribution
cdf
in interface Distribution
val
- existing value@Deprecated public double quantile(double q)
Distribution
quantile
in interface Distribution
q
- Quantile to findpublic double nextRandom()
DistributionWithRandom
nextRandom
in interface DistributionWithRandom
public String toString()
Distribution
toString
in interface Distribution
toString
in class 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 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.