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