Learn R Programming

boodist (version 1.0.0)

NormalInverseGaussian: Normal-inverse Gaussian distribution

Description

A R6 class to represent a normal-inverse Gaussian distribution.

Arguments

Active bindings

mu

Get or set the value of mu.

alpha

Get or set the value of alpha.

beta

Get or set the value of beta.

delta

Get or set the value of delta.

Methods


Method new()

New normal-inverse Gaussian distribution.

Usage

NormalInverseGaussian$new(mu, alpha, beta, delta)

Arguments

mu

location parameter

alpha

tail heaviness parameter, >0

beta

asymmetry parameter

delta

scale parameter, >0

Returns

A NormalInverseGaussian object.


Method d()

Density function of the normal-inverse Gaussian distribution.

Usage

NormalInverseGaussian$d(x, log = FALSE)

Arguments

x

numeric vector

log

Boolean, whether to return the logarithm of the density

Returns

The density or the log-density evaluated at x.


Method p()

Cumulative distribution function of the normal-inverse Gaussian distribution.

Usage

NormalInverseGaussian$p(q)

Arguments

q

numeric vector of quantiles

Returns

The cumulative probabilities corresponding to q, with two attributes (see the Note).


Method q()

Quantile function of the normal-inverse Gaussian distribution.

Usage

NormalInverseGaussian$q(p, bounds = NULL)

Arguments

p

numeric vector of probabilities

bounds

bounds enclosing the quantiles to be found (see the Note), or NULL for automatic bounds

Returns

The quantiles corresponding to p.


Method r()

Sampling from the normal-inverse Gaussian distribution.

Usage

NormalInverseGaussian$r(n)

Arguments

n

number of simulations

Returns

A numeric vector of length n.


Method mean()

Mean of the normal-inverse Gaussian distribution.

Usage

NormalInverseGaussian$mean()

Returns

The mean of the normal-inverse Gaussian distribution.


Method sd()

Standard deviation of the normal-inverse Gaussian distribution.

Usage

NormalInverseGaussian$sd()

Returns

The standard deviation of the normal-inverse Gaussian distribution.


Method variance()

Variance of the normal-inverse Gaussian distribution.

Usage

NormalInverseGaussian$variance()

Returns

The variance of the normal-inverse Gaussian distribution.


Method skewness()

Skewness of the normal-inverse Gaussian distribution.

Usage

NormalInverseGaussian$skewness()

Returns

The skewness of the normal-inverse Gaussian distribution.


Method kurtosis()

Kurtosis of the normal-inverse Gaussian distribution.

Usage

NormalInverseGaussian$kurtosis()

Returns

The kurtosis of the normal-inverse Gaussian distribution.


Method kurtosisExcess()

Kurtosis excess of the normal-inverse Gaussian distribution.

Usage

NormalInverseGaussian$kurtosisExcess()

Returns

The kurtosis excess of the normal-inverse Gaussian distribution.


Method clone()

The objects of this class are cloneable with this method.

Usage

NormalInverseGaussian$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Details

See Wikipedia.