Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

commfunc.h File Reference

Definitions of some specific functions useful in communications. More...

#include <vector.h>
#include <matrix.h>

Include dependency graph for commfunc.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  SPUC

Functions

bmat SPUC::graycode (int m)
 Generate gray code of blocklength m.

The codes are contained as binary codewords {0,1} in the rows of the returned matrix. See also the gray() function in math/scalfunc.h.

int SPUC::hamming_distance (const bvec &a, const bvec &b)
 Calculate the Hamming distance between a and b.
int SPUC::weight (const bvec &a)
 Calculate the Hamming weight of a.


Detailed Description

Definitions of some specific functions useful in communications.

Author:
Tony Ottosson, modified by Tony Kirke, Feb 1,2003
1.4

2002/12/19 23:56:44


Generated on Fri Sep 16 11:02:50 2005 for spuc by  doxygen 1.4.4