Available from MATLAB CEntral File Exchange, https://www.mathworkds.com/matlabcentral/fileexchange/132118-true-circular-mean