netsse.tools.misc_func.ang_std#
- netsse.tools.misc_func.ang_std(angles, unit='deg')#
Calculates the circular standard deviation of an array of angular data.
This function properly handles the circularity of angles at 360 degrees. The standard “two-pass” computation is implemented.
- Parameters:
angles (array_like) – Array of angles.
unit ({'deg','rad'}, optional) – Specifies the unit of the angles as
'rad'
or'deg'
. The default is'deg'
.
- Returns:
std_a – Circular standard deviation.
- Return type:
See also
Example
>>> std_angle = ang_std(angles, unit='deg')