bundles / scipy latest / scipy / stats / _circstats / _circmeandev
function
scipy.stats._circstats:_circmeandev
source: build-install/usr/lib/python3.14/site-packages/scipy/stats/_circstats.py:13
Signature
def _circmeandev(sample, alpha, *, high = 6.283185307179586, low = 0)Summary
Compute the circular mean (absolute) deviation of an angular sample.
Extended Summary
Given angle observations measured in radians, the circular mean (absolute) deviation about a given angle is defined by ([1], Eq. 2.3.14)
For greater generality, this function computes:
where and is the period of a full revolution (e.g. when working in degrees).
Parameters
sample: array_likeInput array of angle observations.
alpha: array_likeThe reference angle with respect to which the mean deviation is computed.
high: float, optionalUpper boundary of the principal value of an angle. Default is
2*pi.low: float, optionalLower boundary of the principal value of an angle. Default is
0.
Returns
circmeandev: floatCircular mean (absolute) deviation, restricted to the range
[low, high].
Examples
import numpy as np from scipy.stats._circstats import _circmeandev import matplotlib.pyplot as plt sample = np.array([20, 30, 330])✓
dev = _circmeandev(sample, sample, high=360, low=0)
✗See also
Aliases
scipy.stats._circstats._circmeandev