#include <reedsolomon.h>
Public Member Functions | |
Reed_Solomon (int in_m, int in_t, bool sys=false) | |
Class constructor for the - ary, error correcting RS-code. | |
virtual | ~Reed_Solomon () |
Destructor. | |
virtual void | encode (const bvec &uncoded_bits, bvec &coded_bits) |
Encoder function. | |
virtual bvec | encode (const bvec &uncoded_bits) |
Encoder function. | |
virtual void | decode (const bvec &coded_bits, bvec &decoded_bits) |
Decoder function. | |
virtual bvec | decode (const bvec &coded_bits) |
Decoder function. | |
virtual void | decode (const vec &received_signal, bvec &output) |
Decode a vec of received data. | |
virtual bvec | decode (const vec &received_signal) |
Decode a vec of received data. | |
virtual double | get_rate () const |
Gets the rate of the RS-code. | |
Reed_Solomon & | operator= (const Reed_Solomon &) |
Dummy assignment operator - MSVC++ warning C4512. | |
Protected Attributes | |
GFX | g |
The generator polynomial of the RS code. | |
const bool | systematic |
Whether or not the code is systematic. | |
int | m |
int | t |
int | k |
int | n |
int | q |
Uses the Berlkamp-Massey algorithm for decoding as described in: S. B. Wicker, "Error Control Systems for digital communication and storage," Prentice Hall.
The code is - ary of length capable of correcting errors.
int itpp::Reed_Solomon::m [protected] |
Internal encoder/decoder parameters
Referenced by decode(), encode(), and Reed_Solomon().