Directional mean in python

Simple script to calculate circular / directional mean of some angular data. Samples is assumed to be in range of <0,2PI>.

To get more information about mean of circular quantities, you can read at wikipedia and more generally about directional statistics.

 

However rather than using this consider using scipy.stats.circmean

http://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.circmean.html#scipy.stats.circmean

Leave a Reply

Your email address will not be published. Required fields are marked *