def complement(x):
    """ Computes complement of a probability/parameter

    Parameters
    ----------
    x : {float, int}

    Returns
    -------
    out : {float, int}
        Complement
    """
    out = 1 - x
    return out