Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

simthlib::Puncturing Class Reference

#include <puncturing.h>

List of all members.

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


Detailed Description

The class supports puncturing of a bit sequence (simth::BitSeq) and of an LLR sequence (simth::LlrSeq).


Constructor & Destructor Documentation

simthlib::Puncturing::Puncturing int  codeRateNumerator,
int  codeRateDenumerator,
int  memoryLength,
int  codeOutputBits,
int  codeInputBits = 1
 

Class constructor.

Parameters:
codeRateNumerator numerator of the punctured code rate
codeRateDenumerator denumerator of the punctured code rate
memoryLength memory length of the coder
codeOutputBits number of output bits of the coder (without puncturing)
codeInputBits number of input bits of the coder

simthlib::Puncturing::Puncturing const std::string &  puncturePattern  ) 
 


Member Function Documentation

void simthlib::Puncturing::depuncture const simth::LlrSeq inputSequence,
simth::LlrSeq outputSequence
const
 

int simthlib::Puncturing::getDepuncturedLength int  len  )  const
 

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.

int simthlib::Puncturing::getDepuncturedLength  )  const [inline, protected]
 

Returns the length of the depunctured output length set by the last call of the function setOutputLength.

int simthlib::Puncturing::getPuncturedLength int  len  )  const
 

Returns the length of the punctured sequence with the unpunctured length len.

void simthlib::Puncturing::invariant  )  const [inline, protected]
 

void simthlib::Puncturing::puncture const simth::LlrSeq inputSequence,
simth::LlrSeq outputSequence
const
 

void simthlib::Puncturing::puncture const simth::BitSeq inputSequence,
simth::BitSeq outputSequence
const
 

Punctures a bit sequence.

void simthlib::Puncturing::setDepuncturedLength int  outLen  )  [inline]
 

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.


Generated on Tue Aug 9 14:39:10 2005 for simtheticlib by  doxygen 1.4.1