""" periodic stats is a collection of tools for statistics over periodic quantities """
importnumpyasnp
defperiodic_stats(alpha,deg=False):
""" statistics of a periodic alpha (radiants)
If alpha is a vector of angles (radiants) find the average number and the std deviation avoiding the problem of the switch between -180,180 or 360 and 0