circ_stat: Circular Statistics for IHA

Description Usage Arguments Details Value

Description

Compute IHA circular statistics for working with Julian dates

Usage

1
circ_stat(v, statfun)

Arguments

v

Vector of Julian dates

statfun

the function to be applied, e.g. mean, median, sd, etc.

Details

The algorithm works by assigning values in v to four bins of equal width. Julian dates in certain bins are then adjusted by +/- 366 depending on the which bin contains the most elements of v. After statfun is applied, the result is adjusted by +/- 366 as necessary to report a valid Julian date. The function will warn the user if more than 10 from the primary bin; in cases where the data exhibits considerable scatter among Julian dates, the circular statistics will be less informative and should be interpreted with caution.

Value

The result of the circular statistic calculation.


mkoohafkan/flowregime documentation built on May 23, 2019, 2:02 a.m.