egolay.h
Go to the documentation of this file.
#ifndef EGOLAY_H
#define EGOLAY_H
#include <itpp/base/vec.h>
#include <itpp/base/mat.h>
#include <itpp/comm/channel_code.h>
#include <itpp/itexports.h>
namespace itpp
{
class ITPP_EXPORT Extended_Golay : public Channel_Code
{
public:
Extended_Golay();
virtual ~Extended_Golay() { }
virtual void encode(const bvec &uncoded_bits, bvec &coded_bits);
virtual bvec encode(const bvec &uncoded_bits);
virtual void decode(const bvec &coded_bits, bvec &decoded_bits);
virtual bvec decode(const bvec &coded_bits);
// Soft-decision decoding is not implemented
virtual void decode(const vec &received_signal, bvec &output);
virtual bvec decode(const vec &received_signal);
virtual double get_rate() const { return 0.5; };
bmat get_G() const { return G; }
private:
bmat B, G;
};
} // namespace itpp
#endif // #ifndef EGOLAY_H
itpp::Extended_Golay::get_G
bmat get_G() const
Gets the generator matrix for the code (also the parity check matrix)
Definition: egolay.h:77
itpp::Channel_Code
Generic Channel Code class.
Definition: channel_code.h:50
mat.h
Matrix Class Definitions.
channel_code.h
Channel Code class virtual interface.
itpp::Extended_Golay
Extended Golay code (24,12,8).
Definition: egolay.h:51
itpp::Extended_Golay::~Extended_Golay
virtual ~Extended_Golay()
Destructor.
Definition: egolay.h:57
itpp
itpp namespace
Definition: itmex.h:36
itpp::Extended_Golay::get_rate
virtual double get_rate() const
Get the code rate.
Definition: egolay.h:74
bmat
Mat< bin > bmat
bin matrix
Definition: mat.h:508
vec.h
Templated Vector Class Definitions.

Generated on Thu Aug 20 2015 21:02:50 for IT++ by Doxygen 1.8.9.1