#include <puncturing.h>
Public Member Functions | |
Puncturing (int codeRateNumerator, int codeRateDenumerator, int memoryLength, int codeOutputBits, int codeInputBits=1) | |
Puncturing (const std::string &puncturePattern) | |
void | puncture (const simth::BitSeq &inputSequence, simth::BitSeq *outputSequence) const |
void | puncture (const simth::LlrSeq &inputSequence, simth::LlrSeq *outputSequence) const |
void | depuncture (const simth::LlrSeq &inputSequence, simth::LlrSeq *outputSequence) const |
int | getPuncturedLength (int len) const |
int | getDepuncturedLength (int len) const |
void | setDepuncturedLength (int outLen) |
Protected Member Functions | |
int | getDepuncturedLength () const |
void | invariant () const |
|
Class constructor.
|
|
|
|
|
|
Returns the depunctured length of punctured length with the length len. Since the result is ambigous, the function setOutputLength had to be called before. Otherwise this function throws an error. If the outputlength set by setDepuncturedLength and the given unpunctured length does not fit together, the function also throws an error. |
|
Returns the length of the depunctured output length set by the last call of the function setOutputLength. |
|
Returns the length of the punctured sequence with the unpunctured length len. |
|
|
|
|
|
Punctures a bit sequence. |
|
Sets the output length of the next depunctured sequence (i.e. the input length of the last punctured bit sequence). This information is neccessary because bit sequences with different lengths could be punctured to bit sequences with equal lengths. |