Water Filling Algorithm

版本 1.0.0.0 (1.7 KB) 作者: G. Levin
The Water Filling Algorithm with a power constrain to approach Shannon capacity of the channel.
12.2K 次下载
更新时间 2003/6/17

查看许可证

WFILL: The Water Filling algorithm.
WLINE = WFILL(VEC, PCON, TOL) performs the water filling algorithm with the given total power constrain to approach Shannon capacity of the channel.

The water filling algorithm is based on an interative procedure, so the tolerance must be assigned to determine the end-of-loop.

VEC is a noise absolute or relative level in LINEAR units at different frequencies, space or whatever bins. PCON is a total power constrain given in the same units as the VEC. TOL is an acceptable tolerance in the units of VEC. WLINE indicates the WATERLINE level in units of VEC so that:

abs(PCON-SUM(MAX(WLINE-VEC, 0)))<=TOL

The algorithm is built such a way that PCON>=SUM(MAX(WLINE-VEC, 0)) and never
PCON<SUM(MAX(WLINE-VEC, 0)).

VEC must be a row vector representing a noise level. PCON and TOL must be scalars in the same units as VEC.

Example:

Input: VEC=[1 3 5 4]
PCON=7
TOL=1e-5

Output: WLINE=5

The function doesn't check the formats of VEC, PCON and TOL, as well as a number of the input and output parameters.

Author: G. Levin, May, 2003

References:
T. M. Cover and J. A. Thomas, "Elements of Information Theory", John Wiley & Sons, Inc, 1991.

引用格式

G. Levin (2024). Water Filling Algorithm (https://www.mathworks.com/matlabcentral/fileexchange/3592-water-filling-algorithm), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R12.1
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Particle Swarm 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0

Misspells correction.