R/dst_gev.R

Defines functions dst_gev

Documented in dst_gev

#' Generalized Extreme Value Distribution
#'
#' Makes a distribution belonging to the family of
#' Generalized Extreme Value (GEV) distributions.
#'
#' @param location Location parameter; numeric.
#' @param scale Scale parameter; positive numeric.
#' @param shape Shape parameter; numeric.
#' @examples
#' dst_gev(0, 1, 1)
#' @export
dst_gev <- function(location, scale, shape) {
  if (scale <= 0) {
    stop("'scale' parameter must be positive.")
  }
  dst_parametric(
    "gev", location = location, scale = scale, shape = shape,
    .variable = "continuous", .env = "package:distionary"
  )
}
vincenzocoia/distionary documentation built on March 5, 2024, 3:13 a.m.