| Gumbel {boodist} | R Documentation |
Gumbel distribution
Description
A R6 class to represent a Gumbel distribution.
Details
See Wikipedia.
Active bindings
aGet or set the value of
a.bGet or set the value of
b.
Methods
Public methods
Method new()
New Gumbel distribution.
Usage
Gumbel$new(a, b)
Arguments
alocation parameter
bscale parameter,
>0
Returns
A Gumbel object.
Method d()
Density function of the Gumbel distribution.
Usage
Gumbel$d(x, log = FALSE)
Arguments
xnumeric vector
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 Gumbel distribution.
Usage
Gumbel$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 Gumbel distribution.
Usage
Gumbel$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 Gumbel distribution.
Usage
Gumbel$r(n)
Arguments
nnumber of simulations
Returns
A numeric vector of length n.
Method mean()
Mean of the Gumbel distribution.
Usage
Gumbel$mean()
Returns
The mean of the Gumbel distribution.
Method median()
Median of the Gumbel distribution.
Usage
Gumbel$median()
Returns
The median of the Gumbel distribution.
Method mode()
Mode of the Gumbel distribution.
Usage
Gumbel$mode()
Returns
The mode of the Gumbel distribution.
Method sd()
Standard deviation of the Gumbel distribution.
Usage
Gumbel$sd()
Returns
The standard deviation of the Gumbel distribution.
Method variance()
Variance of the Gumbel distribution.
Usage
Gumbel$variance()
Returns
The variance of the Gumbel distribution.
Method skewness()
Skewness of the Gumbel distribution.
Usage
Gumbel$skewness()
Returns
The skewness of the Gumbel distribution.
Method kurtosis()
Kurtosis of the Gumbel distribution.
Usage
Gumbel$kurtosis()
Returns
The kurtosis of the Gumbel distribution.
Method kurtosisExcess()
Kurtosis excess of the Gumbel distribution.
Usage
Gumbel$kurtosisExcess()
Returns
The kurtosis excess of the Gumbel distribution.
Method clone()
The objects of this class are cloneable with this method.
Usage
Gumbel$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.