def get_gee_tree(dthresh=1e-3): wdist = { '00100':1.0/8.0, '00110':1.0/16.0, '00111':1.0/16.0, '01001':1.0/8.0, '01100':1.0/16.0, '01110':1.0/32.0, '01111':1.0/32.0, '10010':1.0/8.0, '10011':1.0/8.0, '11001':1.0/8.0, '11100':1.0/16.0, '11110':1.0/32.0, '11111':1.0/32.0 } bpt = BinaryParseTree(5, 2, 2, dthresh=dthresh) bpt.parse_from_word_distribution(wdist) return bpt
def get_gee_tree(dthresh=1e-3): wdist = { '00100': 1.0 / 8.0, '00110': 1.0 / 16.0, '00111': 1.0 / 16.0, '01001': 1.0 / 8.0, '01100': 1.0 / 16.0, '01110': 1.0 / 32.0, '01111': 1.0 / 32.0, '10010': 1.0 / 8.0, '10011': 1.0 / 8.0, '11001': 1.0 / 8.0, '11100': 1.0 / 16.0, '11110': 1.0 / 32.0, '11111': 1.0 / 32.0 } bpt = BinaryParseTree(5, 2, 2, dthresh=dthresh) bpt.parse_from_word_distribution(wdist) return bpt
def get_oh_tree(dthresh=1e-3): wdist = { '00000':1.0/40.0, '00001':1.0/40.0, '00010':1.0/40.0, '00011':1.0/40.0, '00100':1.0/40.0, '00101':1.0/40.0, '00111':1.0/20.0, '01000':1.0/40.0, '01001':1.0/40.0, '01010':1.0/40.0, '01011':1.0/40.0, '01110':1.0/20.0, '01111':1.0/20.0, '10000':1.0/40.0, '10001':1.0/40.0, '10010':1.0/40.0, '10011':1.0/40.0, '10100':1.0/40.0, '10101':1.0/40.0, '10111':1.0/20.0, '11000':1.0/40.0, '11001':1.0/40.0, '11010':1.0/40.0, '11011':1.0/40.0, '11100':1.0/20.0, '11101':1.0/20.0, '11110':1.0/20.0, '11111':3.0/20.0 } bpt = BinaryParseTree(5, 2, 2, dthresh=dthresh) bpt.parse_from_word_distribution(wdist) return bpt
def get_oh_tree(dthresh=1e-3): wdist = { '00000': 1.0 / 40.0, '00001': 1.0 / 40.0, '00010': 1.0 / 40.0, '00011': 1.0 / 40.0, '00100': 1.0 / 40.0, '00101': 1.0 / 40.0, '00111': 1.0 / 20.0, '01000': 1.0 / 40.0, '01001': 1.0 / 40.0, '01010': 1.0 / 40.0, '01011': 1.0 / 40.0, '01110': 1.0 / 20.0, '01111': 1.0 / 20.0, '10000': 1.0 / 40.0, '10001': 1.0 / 40.0, '10010': 1.0 / 40.0, '10011': 1.0 / 40.0, '10100': 1.0 / 40.0, '10101': 1.0 / 40.0, '10111': 1.0 / 20.0, '11000': 1.0 / 40.0, '11001': 1.0 / 40.0, '11010': 1.0 / 40.0, '11011': 1.0 / 40.0, '11100': 1.0 / 20.0, '11101': 1.0 / 20.0, '11110': 1.0 / 20.0, '11111': 3.0 / 20.0 } bpt = BinaryParseTree(5, 2, 2, dthresh=dthresh) bpt.parse_from_word_distribution(wdist) return bpt