celeries.mmr.continuous_angle#

celeries.mmr.continuous_angle(theta, center=0)#

Ensure continuity of a series of values of an angle.

Parameters:
theta(n,) ndarray

Angle series (rad).

centerfloat

Value around which to start. By default a value of 0 means that the angle will start in the range [-pi, pi].

Returns:
ctheta(n,) ndarray

Continuous series of the angle.