regelungstechnik.py
def angle_norm(phi, min, max, convert=False):
    """
    Returns the phase value in degrees in the range between
    v_min and v_max of the given values.
    """
    if convert:
        phi = np.angle(phi, deg=True)
    # Move phi down
    while (phi > max).any():
        phi[phi > max] -= 360
    # Move phi up
    while (phi < min).any():
        phi[phi < min] += 360
    # Move phi down as far as possible
    while (phi - 360 >= min).any():
        phi[phi - 360 > min] -= 360
    return phi

    Returns the phase value in degrees in the range between
    v_min and v_max of the given values.
    
Returns the phase value in degrees in the range between
v_min and v_max of the given values.
Returns the phase value in degrees in the range between v_min and v_max of the given values .
def angle_norm(phi, min, max, convert=False):
    if convert:
        phi = np.angle(phi, deg=True)
    while (phi > max).any():
        phi[phi > max] -= 360
    while (phi < min).any():
        phi[phi < min] += 360
     as far as possible
    while (phi - 360 >= min).any():
        phi[phi - 360 > min] -= 360
    return phi
def angle_norm ( phi , min , max , convert = False ) : if convert : phi = np . angle ( phi , deg = True ) while ( phi > max ) . any ( ) : phi [ phi > max ] -= 360 while ( phi < min ) . any ( ) : phi [ phi < min ] += 360 while ( phi - 360 >= min ) . any ( ) : phi [ phi - 360 > min ] -= 360 return phi
Returns the phase value in degrees in the range between
v_min and v_max of the given values.
Returns the phase value in degrees in the range between v_min and v_max of the given values .
"""
    Returns the phase value in degrees in the range between
    v_min and v_max of the given values.
    """ # Move phi down # Move phi up # Move phi down as far as possible
phi
min
max
convert