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

📄 systeminitialize.m

📁 ofdm系统当中的接纳控制技术 程序当中有三种接纳控制算法的对比 都是基于ofdm系统的
💻 M
字号:
function [TrafficType, DataArriveRate, DelayRequire, Integra] = SystemInitialize(N,Strategy,PercentOfRealTime)%定义QoS参数switch Strategy    case 0         TrafficType = 3 .* ones(1,N); %全部初始化为VoIP的用户        DataArriveRate = 10e3 .* ones(1,N); %约为10kbps        DelayRequire = 0.25 .* ones(1,N); %s,250ms        Integra = ones(1,N);    case 1        for a = 1:N            if rand() < PercentOfRealTime                TrafficType(a) = 4;     %video                DataArriveRate(a) = 32e3;                DelayRequire(a) = 100;                Integra(a) = 1.5;            else                TrafficType(a) = 2;     %FTP                DataArriveRate(a) = 1e6;                DelayRequire(a) = 1e30;                Integra(a) = 1;            end        end    case 2        TrafficType = 4. * ones(1,N);%全部初始化为Video用户        DataArriveRate = 32e3 .* ones(1,N);%初始化平均速率为320Kbps        DelayRequire = 100 .* ones(1,N);%时延200ms/2ms        Integra = ones(1,N);        end

⌨️ 快捷键说明

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