A R6 class to represent a normal-inverse Gaussian distribution.
muGet or set the value of mu.
alphaGet or set the value of alpha.
betaGet or set the value of beta.
deltaGet or set the value of delta.
new()New normal-inverse Gaussian distribution.
NormalInverseGaussian$new(mu, alpha, beta, delta)mulocation parameter
alphatail heaviness parameter, >0
betaasymmetry parameter
deltascale parameter, >0
A NormalInverseGaussian object.
d()Density function of the normal-inverse Gaussian distribution.
NormalInverseGaussian$d(x, log = FALSE)xnumeric vector
logBoolean, whether to return the logarithm of the density
The density or the log-density evaluated at x.
p()Cumulative distribution function of the normal-inverse Gaussian distribution.
NormalInverseGaussian$p(q)qnumeric vector of quantiles
The cumulative probabilities corresponding to q, with two
attributes (see the Note).
q()Quantile function of the normal-inverse Gaussian distribution.
NormalInverseGaussian$q(p, bounds = NULL)pnumeric vector of probabilities
boundsbounds enclosing the quantiles to be found (see the
Note), or NULL for automatic bounds
The quantiles corresponding to p.
r()Sampling from the normal-inverse Gaussian distribution.
NormalInverseGaussian$r(n)nnumber of simulations
A numeric vector of length n.
The mean of the normal-inverse Gaussian distribution.
sd()Standard deviation of the normal-inverse Gaussian distribution.
NormalInverseGaussian$sd()The standard deviation of the normal-inverse Gaussian distribution.
variance()Variance of the normal-inverse Gaussian distribution.
NormalInverseGaussian$variance()The variance of the normal-inverse Gaussian distribution.
skewness()Skewness of the normal-inverse Gaussian distribution.
NormalInverseGaussian$skewness()The skewness of the normal-inverse Gaussian distribution.
kurtosis()Kurtosis of the normal-inverse Gaussian distribution.
NormalInverseGaussian$kurtosis()The kurtosis of the normal-inverse Gaussian distribution.
kurtosisExcess()Kurtosis excess of the normal-inverse Gaussian distribution.
NormalInverseGaussian$kurtosisExcess()The kurtosis excess of the normal-inverse Gaussian distribution.
clone()The objects of this class are cloneable with this method.
NormalInverseGaussian$clone(deep = FALSE)deepWhether to make a deep clone.
See Wikipedia.