ch_circ_mean_reg {CSHShydRology} | R Documentation |
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)
Arguments
dataframe |
a dataframe of day year of event; can be amax or pot. |
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 |
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
Examples
data(CAN05AA008)
am <- ch_sh_get_amax(CAN05AA008)
m_r <- ch_circ_mean_reg(am)