| InverseGaussian {boodist} | R Documentation |
Inverse Gaussian distribution
Description
A R6 class to represent an inverse Gaussian distribution.
Details
See Wikipedia.
Active bindings
muGet or set the value of
mu.lambdaGet or set the value of
lambda.
Methods
Public methods
Method new()
New inverse Gaussian distribution.
Usage
InverseGaussian$new(mu, lambda)
Arguments
muparameter, the mean,
>0lambdashape parameter,
>0
Returns
An inverseGaussian object.
Method d()
Density function of the inverse Gaussian distribution.
Usage
InverseGaussian$d(x, log = FALSE)
Arguments
xvector of positive numbers
logBoolean, 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 inverse Gaussian distribution.
Usage
InverseGaussian$p(q, lower = TRUE)
Arguments
qnumeric vector of quantiles
lowerBoolean, whether to deal with the lower tail
Returns
The cumulative probabilities corresponding to q.
Method q()
Quantile function of the inverse Gaussian distribution.
Usage
InverseGaussian$q(p, lower = TRUE)
Arguments
pnumeric vector of probabilities
lowerBoolean, whether to deal with the lower tail
Returns
The quantiles corresponding to p.
Method r()
Sampling from the inverse Gaussian distribution.
Usage
InverseGaussian$r(n)
Arguments
nnumber of simulations
Returns
A numeric vector of length n.
Method mean()
Mean of the inverse Gaussian distribution.
Usage
InverseGaussian$mean()
Returns
The mean of the inverse Gaussian distribution.
Method median()
Median of the inverse Gaussian distribution.
Usage
InverseGaussian$median()
Returns
The median of the inverse Gaussian distribution.
Method mode()
Mode of the inverse Gaussian distribution.
Usage
InverseGaussian$mode()
Returns
The mode of the inverse Gaussian distribution.
Method sd()
Standard deviation of the inverse Gaussian distribution.
Usage
InverseGaussian$sd()
Returns
The standard deviation of the inverse Gaussian distribution.
Method variance()
Variance of the inverse Gaussian distribution.
Usage
InverseGaussian$variance()
Returns
The variance of the inverse Gaussian distribution.
Method skewness()
Skewness of the inverse Gaussian distribution.
Usage
InverseGaussian$skewness()
Returns
The skewness of the inverse Gaussian distribution.
Method kurtosis()
Kurtosis of the inverse Gaussian distribution.
Usage
InverseGaussian$kurtosis()
Returns
The kurtosis of the inverse Gaussian distribution.
Method kurtosisExcess()
Kurtosis excess of the inverse Gaussian distribution.
Usage
InverseGaussian$kurtosisExcess()
Returns
The kurtosis excess of the inverse Gaussian distribution.
Method clone()
The objects of this class are cloneable with this method.
Usage
InverseGaussian$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.