Example #1
0
def andSymmetricFormula(tvs):
    total_strength = 1.0
    total_confidence = 1.0
    
    for tv in tvs:
        total_strength *= tv.mean
        total_confidence *= count_to_confidence(tv.count)
    
    return [TruthValue(total_strength, confidence_to_count(total_confidence))]
Example #2
0
def andSymmetricFormula(tvs, U):
    total_strength = 1.0
    total_confidence = 1.0
    
    for (s, n) in tvs:
        total_strength *= s
        total_confidence *= count_to_confidence(n)
    
    return (total_strength, confidence_to_count(total_confidence))
Example #3
0
def andSymmetricFormula(tvs):
    total_strength = 1.0
    total_confidence = 1.0

    for tv in tvs:
        total_strength *= tv.mean
        total_confidence *= count_to_confidence(tv.count)

    return [TruthValue(total_strength, confidence_to_count(total_confidence))]