rbgumbel: Bimodal Gumbel: Pseudo-Random Numbers Generator

Description Usage Arguments Value Examples

View source: R/rbgumbel.R

Description

Bimodal Gumbel: Pseudo-Random Numbers Generator

Usage

1
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

1
2
3
4
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')

bgumbel documentation built on April 1, 2021, 1:06 a.m.