Learn R Programming

IETD (version 1.0.0)

CVA: Coefficient of variation analysis

Description

This function computes the inter-event time definition (IETD) based on the coefficient of variation analysis.

Usage

CVA(Time_series,MaxIETD,xlabel,ylabel)

Arguments

Time_series

A dataframe. The first column contains the time and day of a rainfall pulse and the second one the depth of rainfall in each time step. The date must be as POSIXct class.

MaxIETD

The maximum value of IETD to be analyzed (in hours). Default value 24.

xlabel

Label of the x-axis of the figure IETD vs CV.

ylabel

Label of the y-axis of the figure IETD vs CV.

Value

A list with a figure of IETD vs CV, a dataframe with the values of that figure, and the computed value of IETD.

Details

This method assumes that inter-event times (b) are represented well by a exponential distribution. Since by definition b>= IETD, IETD is computed as the value whose resulting coefficient of variation (CV) of b equal to unity Restrepo-Posada1982,Adams2000IETD. This analysis is done by testing several values of IETD and analyzing the resulting CV. The computed IETD is obtained via interpolation from the figure of IETD vs CV.

References

Examples

Run this code
# NOT RUN {
CVA (Time_series=hourly_time_series)
# }

Run the code above in your browser using DataLab