def heaviside(x, bias=0):
    """
    Heaviside function Theta(x - bias)

    returns 1 if x >= bias else 0

    :param x:
    :param bias:
    :return:
    """
    indicator = 1 if x >= bias else 0
    return indicator