#include <reed_solomon.h>
Collaboration diagram for SPUC::reed_solomon:
Public Member Functions | |
reed_solomon (int in_m, int in_t) | |
Class constructor for the ff$2^mff$ - ary, ff$tff$ error correcting RS-code. | |
bvec | encode (const bvec &uncodedbits) |
Encoder function. | |
bvec | decode (const bvec &codedbits) |
Decoder function. | |
double | get_rate () |
Gets the rate of the RS-code. | |
Protected Attributes | |
int | m |
Internal encoder/decoder parameters. | |
int | t |
int | k |
int | n |
int | q |
gfx | g |
The generator polynomial of the RS code. |
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 ff$2^mff$ - ary of length ff$2^m-1ff$ capable of correcting ff$tff$ errors.
|
Class constructor for the ff$2^mff$ - ary, ff$tff$ error correcting RS-code.
|
|
Decoder function.
|
|
Encoder function.
|
|
Gets the rate of the RS-code.
|
|
The generator polynomial of the RS code.
|
|
|
|
Internal encoder/decoder parameters.
|
|
|
|
|
|
|