GNSS-SDR 0.0.21
An Open Source GNSS Software Defined Receiver
Loading...
Searching...
No Matches
Viterbi_Decoder Class Reference

Class that implements a Viterbi decoder. More...

#include <viterbi_decoder.h>

Public Member Functions

 Viterbi_Decoder (int32_t KK, int32_t nn, int32_t LL, const std::array< int32_t, 2 > &g)
 Constructor of a Viterbi decoder.
void decode (std::vector< int32_t > &output_u_int, const std::vector< float > &input_c)
 Uses the Viterbi algorithm to perform hard-decision decoding of a convolutional code.
void reset ()
 Reset internal status.

Detailed Description

Class that implements a Viterbi decoder.

Definition at line 34 of file viterbi_decoder.h.

Constructor & Destructor Documentation

◆ Viterbi_Decoder()

Viterbi_Decoder::Viterbi_Decoder ( int32_t KK,
int32_t nn,
int32_t LL,
const std::array< int32_t, 2 > & g )

Constructor of a Viterbi decoder.

Parameters
[in]KKConstraint length
[in]nnCoding rate 1/n
[in]LLData length
[in]gPolynomial G1 and G2

Member Function Documentation

◆ decode()

void Viterbi_Decoder::decode ( std::vector< int32_t > & output_u_int,
const std::vector< float > & input_c )

Uses the Viterbi algorithm to perform hard-decision decoding of a convolutional code.

Parameters
[out]output_u_intHard decisions on the data bits
[in]input_cThe received signal in LLR-form. For BPSK, must be in form r = 2*a*y/(sigma^2).

◆ reset()

void Viterbi_Decoder::reset ( )

Reset internal status.


The documentation for this class was generated from the following file: