Gumbel: Generating function for Gumbel-class

Description Usage Arguments Value Note Author(s) See Also Examples

View source: R/Gumbel.R

Description

Generates an object of class "Gumbel".

Usage

1
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"

Note

The class "Gumbel" is based on the code provided by the package evd.

Author(s)

Matthias Kohl Matthias.Kohl@stamats.de

See Also

Gumbel-class, rgumbel

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
(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)
}

ROptEstOld documentation built on May 2, 2019, 12:51 p.m.