Learn R Programming

POT (version 1.1-7)

Return Periods Tools: Converts Return Periods to Probability and Vice Versa

Description

Compute return period from probability of non exceedance and vice versa.

Usage

rp2prob(retper, npy)
prob2rp(prob, npy)

Arguments

retper

The return period.

prob

the probability of non exceedance.

npy

The mean Number of events per year (block).

Value

Returns a table with mean numbers of events per year, return periods and probabilities of non exceedance associated.

Details

The return period is defined by: $$T = \frac{1}{npy (1-p)}$$ where \(npy\) is the mean number of events per year (block), \(p\) is the probability of non exceedance.

Examples

Run this code
# NOT RUN {
rp2prob(50, 1.8)
prob2rp(0.6, 2.2)
# }

Run the code above in your browser using DataLab