# elephant.phase_analysis.mean_phase_vector¶

elephant.phase_analysis.mean_phase_vector(phases, axis=0)[source]

Calculates the mean vector of phases.

This function expects phases (in radians) and uses their representation as complex numbers to calculate the direction and the length r of the mean vector.

Parameters: phasesnp.ndarrayPhases in radians. axisint, optionalAxis along which the mean vector will be calculated. If None, it will be computed across the flattened array. Default: 0 z_mean_thetanp.ndarrayAngle of the mean vector. Range: z_mean_rnp.ndarrayLength of the mean vector. Range: