![]() |
ccsoft
0.0.0
Convolutional codes library with soft decision decoding
|
Convolutional encoding class. This version uses a fixed array to store registers. The size is given by the N_k template parameter. More...
#include <CC_Encoding_FA.h>
Public Member Functions | |
CC_Encoding_FA (const std::vector< unsigned int > &_constraints, const std::vector< std::vector< T_Register > > &_genpoly_representations) | |
virtual | ~CC_Encoding_FA () |
virtual T_Register & | get_register (unsigned int index) |
Protected Types | |
typedef CC_EncodingRegisters_FA < T_Register, N_k > | RegisterClass |
Convolutional encoding class. This version uses a fixed array to store registers. The size is given by the N_k template parameter.
T_Register | type of the internal registers |
T_IOSymbol | type used to pass input and output symbols |
N_k | Size of an input symbol in bits (k parameter) |
typedef CC_EncodingRegisters_FA<T_Register, N_k> ccsoft::CC_Encoding_FA< T_Register, T_IOSymbol, N_k >::RegisterClass [protected] |
ccsoft::CC_Encoding_FA< T_Register, T_IOSymbol, N_k >::CC_Encoding_FA | ( | const std::vector< unsigned int > & | _constraints, |
const std::vector< std::vector< T_Register > > & | _genpoly_representations | ||
) | [inline] |
Constructor.
_constraints | Vector of register lengths (constraint length + 1). The number of elements determines k. |
_genpoly_representations | Generator polynomial numeric representations. There are as many elements as there are input bits (k). Each element is itself a vector with one polynomial value per output bit. The smallest size of these vectors is retained as the number of output bits n. The input bits of a symbol are clocked simultaneously into the right hand side, or least significant position of the internal registers. Therefore the given polynomial representation of generators should follow the same convention. |
: CC_Encoding_base<T_Register, T_IOSymbol>(_constraints, _genpoly_representations), CC_EncodingRegisters_FA<T_Register, N_k>() { }
virtual ccsoft::CC_Encoding_FA< T_Register, T_IOSymbol, N_k >::~CC_Encoding_FA | ( | ) | [inline, virtual] |
Destructor
{}
virtual T_Register& ccsoft::CC_Encoding_FA< T_Register, T_IOSymbol, N_k >::get_register | ( | unsigned int | index | ) | [inline, virtual] |
Get a R/W reference to a regiser
index | Index of the register |
Implements ccsoft::CC_Encoding_base< T_Register, T_IOSymbol >.
{ return RegisterClass::get_register(index); }