Functions | |
| bmat | itpp::graycode (int m) |
| Generate Gray code of blocklength m. | |
| int | itpp::hamming_distance (const bvec &a, const bvec &b) |
| Calculate the Hamming distance between a and b. | |
| int | itpp::weight (const bvec &a) |
| Calculate the Hamming weight of a. | |
| vec | itpp::waterfilling (const vec &alpha, double P) |
| Compute the water-filling solution. | |
| bmat itpp::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.
Definition at line 39 of file commfunc.cpp.
References itpp::ones_b(), itpp::reverse(), itpp::to_bmat(), and itpp::zeros_b().
Referenced by itpp::ND_UPSK::set_M(), itpp::ND_UQAM::set_M(), itpp::ND_UPAM::set_M(), itpp::PAM::set_M(), itpp::PAM_c::set_M(), itpp::PSK::set_M(), and itpp::QAM::set_M().
Compute the water-filling solution.
This function computes the solution of the water-filling problem
subject to
| alpha | vector of gains (must have strictly positive elements) | |
| P | power constraint |

at most
Definition at line 81 of file commfunc.cpp.
References it_assert, and itpp::length().
Generated on Sun Dec 9 17:38:55 2007 for IT++ by Doxygen 1.5.4