R/rgumbel.R

Defines functions rgumbel

Documented in rgumbel

rgumbel <-
function(n, location = 0, scale = 1){
  if(any(scale <= 0)) stop("standard deviation must be strictly > 0.")
  scale*log(-log(1 - runif(n))) + location
}

Try the dirttee package in your browser

Any scripts or data that you put into this service are public.

dirttee documentation built on Sept. 14, 2022, 5:06 p.m.