R/plunif.R

#' @rdname dlunif
#' @export
plunif <- function(q, min, max, base=exp(1))  {
  if (mode(q) != "numeric")
    stop("'q' must be a non-empty numeric vector")
  if (any(missing(min), missing(max)))
    stop("'min' and 'max' not provided, without default.\n")
  return(1 / (log(max, base) - log(min, base)) * (log(q, base) - log(min, base)))
}

Try the KScorrect package in your browser

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

KScorrect documentation built on July 4, 2019, 1:02 a.m.