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 00047 bmat graycode(int m); 00048 00053 int hamming_distance(const bvec &a, const bvec &b); 00054 00059 int weight(const bvec &a); 00060 00081 vec waterfilling(const vec& alpha, double P); 00082 00083 } // namespace itpp 00084 00085 #endif // #ifndef COMMFUNC_H
Generated on Thu Apr 24 13:39:00 2008 for IT++ by Doxygen 1.5.5