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 | |
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 This function computes the solution of the water-filling problem
subject to
|
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 |
References it_assert, and itpp::length().