distrEx (version 2.1)

Gumbel: Generating function for Gumbel-class

Description

Generates an object of class "Gumbel".

Usage

Gumbel(loc = 0, scale = 1)

Arguments

loc
real number: location parameter of the Gumbel distribution.
scale
positive real number: scale parameter of the Gumbel distribution

Value

  • Object of class "Gumbel"

concept

  • Gumbel
  • absolutely continuous distribution
  • Gumbel distribution
  • generating function

See Also

Gumbel-class, rgumbel

Examples

Run this code
(G1 <- Gumbel(loc = 1, scale = 2))
plot(G1)
loc(G1)
scale(G1)
loc(G1) <- -1
scale(G1) <- 2
plot(G1)

E(Gumbel()) # Euler's constant
E(G1, function(x){x^2})

## The function is currently defined as
function(loc = 0, scale = 1){ 
  new("Gumbel", loc = loc, scale = scale)
}

Run the code above in your browser using DataCamp Workspace