R/pgumbel.R

Defines functions pgumbel

pgumbel <- function(q, location = 0, scale = 1, lower.tail = TRUE, log.p = FALSE) {
  z <- (q - location) / scale
  cdf <- exp(-exp(-z))
  
  if (!lower.tail) {
    cdf <- 1 - cdf
  }
  if (log.p) {
    return(log(cdf))
  }
  return(cdf)
}

Try the scanstatistics package in your browser

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

scanstatistics documentation built on Feb. 16, 2023, 10:32 p.m.