00001 00030 #ifndef COMMFUNC_H 00031 #define COMMFUNC_H 00032 00033 #include <itpp/base/mat.h> 00034 #include <itpp/base/vec.h> 00035 00036 00037 namespace itpp 00038 { 00039 00048 bmat graycode(int m); 00049 00054 int hamming_distance(const bvec &a, const bvec &b); 00055 00060 int weight(const bvec &a); 00061 00082 vec waterfilling(const vec& alpha, double P); 00083 00084 } // namespace itpp 00085 00086 #endif // #ifndef COMMFUNC_H
Generated on Wed Feb 9 2011 13:47:24 for IT++ by Doxygen 1.7.3