예제 #1
0
파일: formulas.py 프로젝트: Otero/opencog
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))]
예제 #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))
예제 #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))]