def map_decode(sequence, ebn0): rel = channel._decibel_to_ratio(ebn0) * 2 return decode.binary_maximum_a_posteriori(lookup_tables.abrantes_convo213, sequence, rel, True)
def turbo_decode1(sequence, ebn0): rel = channel._decibel_to_ratio(ebn0) * 2 return decode.turbo_decode(sequence, lookup_tables.gzl_rsc, interleaver, 1, rel)
def turbo_decode(sequence, ebn0): rel = channel._decibel_to_ratio(ebn0) * 2 # rel = ebn0 * 2 return decode.turbo_decode(sequence, table, interleaver, k, rel)