empdisl: Empirical Distribution Function

View source: R/eva_functions.R

empdislR Documentation

Empirical Distribution Function

Description

This function calculates the empirical distribution function for a given dataset, with a focus on low values

Usage

empdisl(x, nyr)

Arguments

x

A numeric vector or matrix representing the discharge values.

nyr

An integer representing the number of years.

Value

A data frame containing the following columns:

emp.RP

Empirical return period

haz.RP

Hazen return period

gumbel

Gumbel frequency

emp.f

Empirical frequency

emp.hazen

Empirical Hazen frequency

Q

Discharge values

Examples

x <- c(10, 20, 30, 40, 50)
nyr <- 5
empdisl(x, nyr)


RtsEva documentation built on June 24, 2024, 5:07 p.m.