IT++ Logo
Public Member Functions

itpp::BCH Class Reference

Class for binary, narrow-sense BCH codes. More...

#include <itpp/comm/bch.h>

Inheritance diagram for itpp::BCH:
itpp::Channel_Code

List of all members.

Public Member Functions

 BCH (int in_n, int in_k, int in_t, ivec genpolynom, bool sys=false)
 Initialize a (n,k)-code that can correct t errors.
virtual ~BCH ()
 Destructor.
virtual void encode (const bvec &uncoded_bits, bvec &coded_bits)
 Encode a bvec of indata.
virtual bvec encode (const bvec &uncoded_bits)
 Encode a bvec of indata.
virtual void decode (const bvec &coded_bits, bvec &decoded_bits)
 Decode a bvec of coded data.
virtual bvec decode (const bvec &coded_bits)
 Decode a bvec of coded data.
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
 Get the code rate.
BCHoperator= (const BCH &)
 Dummy assignment operator - MSVC++ warning C4512.

Detailed Description

Class for binary, narrow-sense BCH codes.

The notation used is found in S. B. Wicker, "Error control systems for digital communication and storage", Appendix E, Prentice-Hall, 1995.

Example:

 BCH bch(31,21,2,"3 5 5 1")

uses the generator polynomial $g(x) = x^{10} + x^9 + x^8 + x^6 + x^5 + x^3 + 1$, and is capable of correcting 2 errors with n = 31 and k = 21.

Definition at line 60 of file bch.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
SourceForge Logo

Generated on Wed Feb 9 2011 13:47:19 for IT++ by Doxygen 1.7.3