Functions | |
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 . | |
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 solutionThis function computes the solution of the water-filling problem
subject to
|
Compute the water-filling solutionThis function computes the solution of the water-filling problem
subject to
.
alpha | vector of ![]() | |
P | power constraint |
The computational complexity of the method is at most
Generated on Sun Dec 20 07:06:14 2009 for IT++ by Doxygen 1.6.1