![]() |
GNSS-SDR 0.0.21
An Open Source GNSS Software Defined Receiver
|
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. | |
Class that implements a Viterbi decoder.
Definition at line 34 of file viterbi_decoder.h.
| 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.
| [in] | KK | Constraint length |
| [in] | nn | Coding rate 1/n |
| [in] | LL | Data length |
| [in] | g | Polynomial G1 and G2 |
| 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.
| [out] | output_u_int | Hard decisions on the data bits |
| [in] | input_c | The received signal in LLR-form. For BPSK, must be in form r = 2*a*y/(sigma^2). |
| void Viterbi_Decoder::reset | ( | ) |
Reset internal status.