rbgumbel {bgumbel} | R Documentation |
Bimodal Gumbel: Pseudo-Random Numbers Generator
Description
Bimodal Gumbel: Pseudo-Random Numbers Generator
Usage
rbgumbel(n, mu, sigma, delta)
Arguments
n |
Number of observations. If length(n) > 1, the length is taken to be the number required. |
mu |
First location parameter. |
sigma |
Scale parameter. |
delta |
Second location parameter. |
Value
A matrix nx1.
Examples
x <- rbgumbel(40000, mu = -2, sigma = 1, delta = -1)
hist(x, probability = TRUE)
curve(dbgumbel(x, mu = -2, sigma = 1, delta = -1), add = TRUE, col = 'blue')
lines(density(x), col = 'red')
[Package bgumbel version 0.0.3 Index]