pingouin.circ_mean

pingouin.circ_mean(alpha, w=None, axis=0)[source]

Mean direction for circular data.

Parameters
alphaarray

Sample of angles in radians

warray

Number of incidences in case of binned angle data

axisint

Compute along this dimension

Returns
mufloat

Mean direction

Examples

Mean resultant vector of circular data

>>> from pingouin import circ_mean
>>> alpha = [0.785, 1.570, 3.141, 0.839, 5.934]
>>> circ_mean(alpha)
1.012962445838065