R/dgumbel.R

Defines functions dgumbel

Documented in dgumbel

dgumbel <-
function(x, location = 0, scale = 1){
  if(any(scale <= 0)) stop("standard deviation must be strictly > 0.")
  (1/scale)*exp((x - location)/scale - exp((x - location)/scale))
}

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.