Learn R Programming

CSHShydRology (version 1.4.2)

ch_circ_mean_reg: Calculates the circular mean, median, and regularity

Description

Calculate the circular mean, median, and regularity using a year of 365 days. Days of year are converted to degrees internally, results are returned as positive days of year

Usage

ch_circ_mean_reg(dataframe)

Value

Returns a list of the following statistics

n

number of samples

mean

circular mean of array

median

circular median of array

rho

regularity or mean resultant length

Arguments

dataframe

a dataframe of day year of event; can be amax or pot.

References

Pewsey, A., M. Neuhauser, and G. D. Ruxton. 2014. Circular Statistics in R, 192 pp., Oxford University Press. Whitfield, P. H. 2018. Clustering of seasonal events: A simulation study using circular methods. Communications in Statistics - Simulation and Computation 47(10): 3008-3030. Burn, D. H., and P. H. Whitfield. 2021*. Changes in the timing of flood events resulting from climate change.

See Also

ch_sh_get_amax

Examples

Run this code
data(CAN05AA008)
am <- ch_sh_get_amax(CAN05AA008)
m_r <- ch_circ_mean_reg(am)

Run the code above in your browser using DataLab