get_circular_mean_and_std_dev

lsst.ts.ess.csc.get_circular_mean_and_std_dev(angles: numpy.ndarray | list[float]) tuple[float, float]

Compute the circular mean and circular standard deviation of an array of angles in degrees.

Parameters:
angleslist of float

A sequence of angles in degrees.

Returns:
meanfloat

The circular mean.

std_devfloat

The circular standard deviation, which ranges from 0 to math.inf.

Raises:
ValueError

If angles is empty.