예제 #1
0
 def run(self, file_):        
     self._get_iq_data(file_)
     
     data_carriers, super_frame_start = components.run_dsp(self.iq_data)
     demultiplex_bits = components.inner_processing(data_carriers, 
                                                    super_frame_start)
                                                    
     vit_decoded = components.viterbi_decoder(demultiplex_bits, self.rate)
     self.m2ts_byte_string = components.outer_processing(vit_decoded, 
                                                     super_frame_start, 
                                                     self.rate)
     
     return self.m2ts_byte_string
예제 #2
0
def test_viterbi_decoder():
    coded_bits, un_coded_bits = _generate_data()
    vit_decoded = components.viterbi_decoder(coded_bits, rate=(2, 3))

    assert np.alltrue(vit_decoded == un_coded_bits)
예제 #3
0
def test_viterbi_decoder():    
    coded_bits, un_coded_bits = _generate_data()    
    vit_decoded = components.viterbi_decoder(coded_bits, rate=(2,3))
    
    assert np.alltrue(vit_decoded == un_coded_bits)