Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
class Distribution d where Source #
Distribution Class for the GEV family of distributions. That is, each of the distributions considered will have a CDF, PDF and Quantile function.
cdf :: d -> Double -> Double Source #
Cumulative Distribution Function (CDF) of a given distribution. i.e. $mathbb{P}(X leq x)$ for $x in Omega(X)$ (i.e. x is in the support of X)
cdf d +∞ = 1 cdf d -∞ = 0
complCdf :: d -> Double -> Double Source #
Complement of the CDF, i.e. $mathbb{P}(X geq x)$.
pdf :: d -> Double -> Double Source #
Probability Density Function (pdf) of a distribution. i.e. $mathbb{P}(X = x)$ for $x in Omega(X)$ (i.e. x is in the support of X)
logPdf :: d -> Double -> Double Source #
Log density of a given distribution i.e. density for $Y = log X$
quantile :: d -> Double -> Double Source #
Quantile function (a.k.a inverse CDF) of a distribution. i.e. $F^{-1}(x)$ for $x in [0, 1]$.
complQuantile :: d -> Double -> Double Source #
Quantile complement, i.e. Quantile for level $1 - alpha$.
randGen :: StatefulGen g m => d -> g -> m Double Source #
generate random value of the Distribution.