empdis {RtsEva}R Documentation

empdis: Empirical Distribution Function

Description

empdis is a function that calculates the empirical distribution function for a given dataset.

Usage

empdis(x, nyr)

Arguments

x

A numeric vector representing the dataset.

nyr

An integer representing the number of years in the dataset.

Value

A data frame containing:

emp.RP

empirical return period

haz.RP

Hazen return period

cun.RP

Cunnane return period

gumbel

Gumbel values

emp.f

empirical cumulative density

emp.hazen

Hazen cumulative density

emp.cunnan

Cunnane cumulative density

Q

original data

timestamp

time component

Examples

x <- c(1, 2, 3, 4, 5)
nyr <- 5
empdis(x, nyr)


[Package RtsEva version 1.0.0 Index]