⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chow_algo.m

📁 本程序利用改进的CHOW算法
💻 M
字号:
% Chow's Algorithm% ----------------% This is based on the paper by Chow et al titled%应用chow算法来实现特别的比特和能量分配% A Practical Discrete Multitone Transceiver Loading Algorithm % for Data Transmission over Spectrally Shaped Channels.IEEE Trans% on Communications. Vol. 43, No 2/3/4, pp. 773-775, Feb/Mar/Apr 1995function [bits_alloc, energy_alloc] = chow_algo(SNR,num_subc,M)for i = 1:num_subc% Assuming each of the subchannels has a flat fading(平坦衰落信道), we get initial estimate% of the bits for each subchannel初始化每个子信道的比特数  tempbits        = log2(1 + abs(SNR(i)));       % bits per two dimension.   roundtempbits   = round(tempbits);            % round the bits 取整       if (roundtempbits > 8)                       % Limit them between 2 and 15将比特数限制在2~15之间     roundtempbits = 8;  end  if (mod(roundtempbits,2)== 1 & roundtempbits ~= 1)      roundtempbits = roundtempbits -1;  end    if roundtempbits > 0                            % Calculate the Energy required for the subchannel计算每个子信道的功率     energy_alloc(i)  = (2^roundtempbits-1)/SNR(i) ;   else     energy_alloc(i) = 0;  end    bits_alloc(i) = roundtempbits;                 % Update the BitSubChan   更新每个子信道的比特数end% end of function

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -