Example #1
0
def generate_Sasl_vrep(K, i, num_type='fraction'):
    """Generate the V-representation of avoiding S-sure loss

    See Equation (9) in my ISIPTA '13 paper “Characterizing coherence,
    correcting incoherence”. Here, S has negative component at index `i`.

    """
    deg_prevs = transpose(K)
    neg_dirs = generate_Sasl_neg_dirs(len(K), i)
    return make_vrep(deg_prevs, neg_dirs, num_type)
Example #2
0
def generate_asl_vrep(K, num_type='fraction'):
    """Generate the V-representation of avoiding sure loss

    See Equation (5) in my ISIPTA '13 paper “Characterizing coherence,
    correcting incoherence”.

    """
    deg_prevs = transpose(K)
    neg_dirs = diagonallists([-1] * len(K))
    return make_vrep(deg_prevs, neg_dirs, num_type)