featuremapper/distribution.py
def calc_theta(bins, axis_range):
    """
    Convert a bin number to a direction in radians.

    Works for NumPy arrays of bin numbers, returning
    an array of directions.
    """
    return np.exp( (2.0 * np.pi) * bins / axis_range * 1.0j )

    Convert a bin number to a direction in radians.

    Works for NumPy arrays of bin numbers, returning
    an array of directions.
    
Convert a bin number to a direction in radians.
Works for NumPy arrays of bin numbers, returning
an array of directions.
Convert a bin number to a direction in radians . Works for NumPy arrays of bin numbers returning an array of directions .
def calc_theta(bins, axis_range):
    return np.exp( (2.0 * np.pi) * bins / axis_range * 1.0j )
def calc_theta ( bins , axis_range ) : return np . exp ( ( 2.0 * np . pi ) * bins / axis_range * 1.0j )
Convert a bin number to a direction in radians.
Convert a bin number to a direction in radians .
"""
    Convert a bin number to a direction in radians.

    Works for NumPy arrays of bin numbers, returning
    an array of directions.
    """
bins
axis_range