IT++ Logo
Classes | Functions
Miscellaneous Communications Functions
Communications Module

Classes

class  itpp::EXIT
 EXtrinsic Information Transfer (EXIT) chart. More...
 
class  itpp::Multilateration
 Multilateration class for 3D indoor localization More...
 
class  itpp::STC
 Space Time block Codes (STC) class. More...
 

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

\[ \max_{p_0,...,p_{n-1}} \sum_{i=0}^{n-1} \log\left(1+p_i\alpha_i\right) \]

subject to

\[ \sum_{i=0}^{n-1} p_i \le P \]

.

 

Detailed Description

Function Documentation

ITPP_EXPORT vec itpp::waterfilling ( const vec &  alpha,
double  P 
)

Compute the water-filling solutionThis function computes the solution of the water-filling problem

\[ \max_{p_0,...,p_{n-1}} \sum_{i=0}^{n-1} \log\left(1+p_i\alpha_i\right) \]

subject to

\[ \sum_{i=0}^{n-1} p_i \le P \]

.

Parameters
alphavector of $\alpha_0,...,\alpha_{n-1}$ gains (must have strictly positive elements)
Ppower constraint
Returns
vector of power allocations $p_0,...,p_{n-1}$

The computational complexity of the method is $O(n^2)$ at most

Definition at line 82 of file commfunc.cpp.

References it_assert, and itpp::length().

SourceForge Logo

Generated on Sat Jul 6 2013 10:54:29 for IT++ by Doxygen 1.8.2