udgumbel: UNU.RAN object for Gumbel distribution

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/distributions.R

Description

Create UNU.RAN object for a Gumbel (Extreme value type I) distribution location parameter location and scale parameter scale.

[Distribution] – Gumbel (Extreme value type I).

Usage

1
udgumbel(location=0, scale=1, lb=-Inf, ub=Inf)

Arguments

location

location parameter.

scale

(strictly positive) scale parameter.

lb

lower bound of (truncated) distribution.

ub

upper bound of (truncated) distribution.

Details

The Gumbel distribution function with location l and scale s is

F(x) = exp(-exp(-(x-l)/s))

for all x.

The domain of the distribution can be truncated to the interval (lb,ub).

Value

An object of class "unuran.cont".

Author(s)

Josef Leydold and Wolfgang H\"ormann [email protected].

References

N.L. Johnson, S. Kotz, and N. Balakrishnan (1995): Continuous Univariate Distributions, Volume 2. 2nd edition, John Wiley & Sons, Inc., New York. Chap. 22, p. 2.

See Also

unuran.cont.

Examples

1
2
3
4
5
6
## Create distribution object for Gumbel distribution
distr <- udgumbel()
## Generate generator object; use method PINV (inversion)
gen <- pinvd.new(distr)
## Draw a sample of size 100
x <- ur(gen,100)

Runuran documentation built on Nov. 17, 2017, 4:40 a.m.