35#include <itpp/itexports.h>
68 virtual double get_rate()
const {
return static_cast<double>(k) / n; };
71 int get_n()
const {
return n; };
73 int get_k()
const {
return k; };
81 void generate_H(
void);
82 void generate_G(
void);
Channel Code class virtual interface.
Generic Channel Code class.
bmat get_H() const
Gets the parity check matrix for the code.
virtual double get_rate() const
Get the code rate.
bmat get_G() const
Gets the generator matrix for the code.
virtual ~Hamming_Code()
Destructor.
int get_n() const
Gets the code length n.
int get_k() const
Gets the number of information bits per code word, k.
Matrix Class Definitions.
Mat< bin > bmat
bin matrix
Templated Vector Class Definitions.