public class SkewGeneralizedNormalDistribution extends AbstractDistribution
Modifier and Type | Class and Description |
---|---|
static class |
SkewGeneralizedNormalDistribution.Parameterizer
Parameterization class
|
Modifier and Type | Field and Description |
---|---|
private double |
mean
Mean value for the generator
|
private double |
skew
Skew.
|
private double |
stddev
Standard deviation
|
random
Constructor and Description |
---|
SkewGeneralizedNormalDistribution(double mean,
double stddev,
double skew)
Constructor for Gaussian distribution
|
SkewGeneralizedNormalDistribution(double mean,
double stddev,
double skew,
Random random)
Constructor for Gaussian distribution
|
SkewGeneralizedNormalDistribution(double mean,
double stddev,
double skew,
RandomFactory random)
Constructor for Gaussian 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 skew)
Cumulative probability density function (CDF) of a normal 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 skew)
Probability density function of the skewed normal distribution.
|
double |
quantile(double q)
Quantile aka probit (for normal) aka inverse CDF (invcdf, cdf^-1) function.
|
static double |
quantile(double x,
double mu,
double sigma,
double skew)
Inverse cumulative probability density function (probit) of a normal
distribution.
|
String |
toString()
Describe the distribution
|
private double mean
private double stddev
private double skew
public SkewGeneralizedNormalDistribution(double mean, double stddev, double skew, Random random)
mean
- Meanstddev
- Standard Deviationskew
- Skewrandom
- Random generatorpublic SkewGeneralizedNormalDistribution(double mean, double stddev, double skew, RandomFactory random)
mean
- Meanstddev
- Standard Deviationskew
- Skewrandom
- Random generatorpublic SkewGeneralizedNormalDistribution(double mean, double stddev, double skew)
mean
- Meanstddev
- Standard Deviationskew
- Skewpublic double pdf(double val)
Distribution
val
- existing valuepublic double cdf(double val)
Distribution
val
- existing valuepublic double quantile(double q)
Distribution
q
- Quantile to findpublic double nextRandom()
Distribution
nextRandom
in interface Distribution
nextRandom
in class AbstractDistribution
public String toString()
Distribution
toString
in interface Distribution
toString
in class Object
public static double pdf(double x, double mu, double sigma, double skew)
x
- The value.mu
- The mean.sigma
- The standard deviation.public static double cdf(double x, double mu, double sigma, double skew)
x
- value to evaluate CDF atmu
- Mean valuesigma
- Standard deviation.public static double quantile(double x, double mu, double sigma, double skew)
x
- value to evaluate probit function atmu
- Mean valuesigma
- Standard deviation.Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.