亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? resource_alloc.m

?? 基于OFDM的無線寬帶系統(tǒng)仿真It contains mainly two parts, i.e. link-level simulator and system-level simulator.
?? M
字號:
function [st_baseStation] = resource_alloc(st_baseStation, st_mobileStations, st_initConfig)

switch st_baseStation.scheduler_Algo
    case 0
        st_baseStation.allocation(1,1,1:st_baseStation.nuSubChannels)=1:st_baseStation.nuSubChannels;
        switch st_baseStation.FixModulation
            case 'bpsk'
                for lp_idMS = 1:st_initConfig.nuMob
                    st_baseStation.mod(1,1,lp_idMS)=1;%st_mobileStations(lp_idMS).mod(1,1,lp_idMS);
                    st_baseStation.fec(1,1,lp_idMS)=1/3;%st_mobileStations(lp_idMS).fec(1,1,lp_idMS);
                end
            case 'qpsk'
                switch st_baseStation.FixFec
                    case '1/3'
                        for lp_idMS = 1:st_initConfig.nuMob
                            st_baseStation.mod(1,1,lp_idMS)=2;%st_mobileStations(lp_idMS).mod(1,1,lp_idMS);
                            st_baseStation.fec(1,1,lp_idMS)=1/3;%st_mobileStations(lp_idMS).fec(1,1,lp_idMS);
                        end
                    case '1/2'
                        for lp_idMS = 1:st_initConfig.nuMob
                            st_baseStation.mod(1,1,lp_idMS)=2;%st_mobileStations(lp_idMS).mod(1,1,lp_idMS);
                            st_baseStation.fec(1,1,lp_idMS)=1/2;%st_mobileStations(lp_idMS).fec(1,1,lp_idMS);
                        end
                    case '2/3'
                        for lp_idMS = 1:st_initConfig.nuMob
                            st_baseStation.mod(1,1,lp_idMS)=2;%st_mobileStations(lp_idMS).mod(1,1,lp_idMS);
                            st_baseStation.fec(1,1,lp_idMS)=2/3;%st_mobileStations(lp_idMS).fec(1,1,lp_idMS);
                        end
                end
            case 'qam16'
                switch st_baseStation.FixFec
                    case '1/3'
                        for lp_idMS = 1:st_initConfig.nuMob
                            st_baseStation.mod(1,1,lp_idMS)=4;%st_mobileStations(lp_idMS).mod(1,1,lp_idMS);
                            st_baseStation.fec(1,1,lp_idMS)=1/3;%st_mobileStations(lp_idMS).fec(1,1,lp_idMS);
                        end
                    case '1/2'
                        for lp_idMS = 1:st_initConfig.nuMob
                            st_baseStation.mod(1,1,lp_idMS)=4;%st_mobileStations(lp_idMS).mod(1,1,lp_idMS);
                            st_baseStation.fec(1,1,lp_idMS)=1/2;%st_mobileStations(lp_idMS).fec(1,1,lp_idMS);
                        end
                    case '2/3'
                        for lp_idMS = 1:st_initConfig.nuMob
                            st_baseStation.mod(1,1,lp_idMS)=4;%st_mobileStations(lp_idMS).mod(1,1,lp_idMS);
                            st_baseStation.fec(1,1,lp_idMS)=2/3;%st_mobileStations(lp_idMS).fec(1,1,lp_idMS);
                        end
                end

        end
    case {1 2} % see description in test config
        % Now implementing SISO.
        % Other advanced option will be implemented once the system is built.
        % Resource allocation algorithm
        % As of now, all available sub carriers will be divided uniformly among all
        % users. Adjacent sub carriers will be allocated to one user.
        % Since we are considering SISO, we need to consider only number of
        % available sub carrier and the total number of active mobiles
        % Number of sub carriers per mobile


        % Per sub channel resource allocation. As of now each sub
        % channel is being assigned to one user
        %         st_baseStation.allocation(1,1,1:st_baseStation.nuSubChannels)=1:st_baseStation.nuSubChannels;

        RR_alloc_number=1;%round(rand*st_baseStation.nuSubChannels+1); % Random frequency hopping
%         sub_channel_counter=0;
        %flg_sub_chan_allocation_available=1;
        RR_rand_mob_start_idx=ceil(rand*st_initConfig.nuMob);
        RR_mobile_list = [RR_rand_mob_start_idx:st_initConfig.nuMob 1:RR_rand_mob_start_idx-1];
        for lp_idMS = RR_mobile_list
            for lp_nuSubChannels=1:st_baseStation.nuSubChannelsMAX_RR
                RR_alloc_number = mod(RR_alloc_number,st_baseStation.nuSubChannels)+1;
%                 sub_channel_counter = sub_channel_counter +1 ;
                st_baseStation.mod(RR_alloc_number,1,1)=st_mobileStations(lp_idMS).mod(1,1,RR_alloc_number);
                st_baseStation.fec(RR_alloc_number,1,1)=st_mobileStations(lp_idMS).fec(1,1,RR_alloc_number);
                st_baseStation.allocation(RR_alloc_number,1,1)=lp_idMS;
                st_baseStation.mobId(RR_alloc_number,1,1)=uint32(st_mobileStations(lp_idMS).MobNumber(st_initConfig.nFrmCntSlot));
                st_baseStation.ueDistance(RR_alloc_number,1,1)=uint16(round(abs(st_initConfig.locMS(lp_idMS) - st_initConfig.locBS(st_initConfig.desiredBsIdx))));
                st_baseStation.poweradjust(RR_alloc_number,1,1) = st_mobileStations(lp_idMS).poweradjust(1,1,RR_alloc_number);

%                 flg_sub_chan_allocation_full=mod(sub_channel_counter,st_baseStation.nuSubChannels);
%                 if flg_sub_chan_allocation_available==0
%                     break
%                 end
            end
%             if flg_sub_chan_allocation_available==0
%                 break
%             end

        end
        %         check=1;
        % Resource allocation

        %     case 3
        % Round Robin, but multiple sub channels to one user based on data
        % rate requirement
    case 4
        % max c/I
        %         sub_channel_counter=0;
        for lp_nuSubChannels=1:st_baseStation.nuSubChannels
            
            % know the length already. pre-allocate to save mem and speed
            mob_thpt_next=nan(1,st_initConfig.nuMob);
            for lp_idMS = 1:st_initConfig.nuMob
                mob_thpt_next(lp_idMS)=st_mobileStations(lp_idMS).ThptNext(lp_nuSubChannels);            
            end
            [val_thpt,mob_handle_number]=max(mob_thpt_next);
            st_baseStation.mod(lp_nuSubChannels,1,1)=st_mobileStations(mob_handle_number).mod(1,1,lp_nuSubChannels);
            st_baseStation.fec(lp_nuSubChannels,1,1)=st_mobileStations(mob_handle_number).fec(1,1,lp_nuSubChannels);
            st_baseStation.allocation(lp_nuSubChannels,1,1)=mob_handle_number;
            st_baseStation.mobId(lp_nuSubChannels,1,1)=uint32(st_mobileStations(mob_handle_number).MobNumber(st_initConfig.nFrmCntSlot));
            st_baseStation.ueDistance(lp_nuSubChannels,1,1)=uint16(round(abs(st_initConfig.locMS(mob_handle_number) - st_initConfig.locBS(st_initConfig.desiredBsIdx))));
            st_baseStation.poweradjust(lp_nuSubChannels,1,1) = st_mobileStations(mob_handle_number).poweradjust(1,1,lp_nuSubChannels);
        end
    case 5
        % Simple Proportional Fair algorithm with no frills!
        for lp_nuSubChannels=1:st_baseStation.nuSubChannels
            mob_thpt_next=nan(1,st_initConfig.nuMob);
            for lp_idMS = 1:st_initConfig.nuMob
                if st_mobileStations(lp_idMS).ThptAvgPast == 0,
                    st_mobileStations(lp_idMS).ThptAvgPast = 1;
                end
                mob_thpt_next(lp_idMS)=st_mobileStations(lp_idMS).ThptNext(lp_nuSubChannels)/st_mobileStations(lp_idMS).ThptAvgPast;
            end
            [val_thpt,mob_handle_number]=max(mob_thpt_next);
            st_baseStation.mod(lp_nuSubChannels,1,1)=st_mobileStations(mob_handle_number).mod(1,1,lp_nuSubChannels);
            st_baseStation.fec(lp_nuSubChannels,1,1)=st_mobileStations(mob_handle_number).fec(1,1,lp_nuSubChannels);
            st_baseStation.allocation(lp_nuSubChannels,1,1)=mob_handle_number;
            st_baseStation.mobId(lp_nuSubChannels,1,1)=uint32(st_mobileStations(mob_handle_number).MobNumber(st_initConfig.nFrmCntSlot));
            st_baseStation.ueDistance(lp_nuSubChannels,1,1)=uint16(round(abs(st_initConfig.locMS(mob_handle_number) - st_initConfig.locBS(st_initConfig.desiredBsIdx))));
            st_baseStation.poweradjust(lp_nuSubChannels,1,1) = st_mobileStations(mob_handle_number).poweradjust(1,1,lp_nuSubChannels);
        end
        case 6
        % Proportional fair, with data rate requirement
            for lp_nuSubChannels=1:st_baseStation.nuSubChannels
                mob_thpt_next=nan(1,st_initConfig.nuMob);
                for lp_idMS = 1:st_initConfig.nuMob
                    mob_thpt_next(lp_idMS)=st_mobileStations(lp_idMS).ThptNext(lp_nuSubChannels)/(st_mobileStations(lp_idMS).fair)^st_initConfig.tunablealpha;
                end
                [val_thpt,mob_handle_number]=max(mob_thpt_next);
                st_baseStation.mod(lp_nuSubChannels,1,1)=st_mobileStations(mob_handle_number).mod(1,1,lp_nuSubChannels);
                st_baseStation.fec(lp_nuSubChannels,1,1)=st_mobileStations(mob_handle_number).fec(1,1,lp_nuSubChannels);
                st_baseStation.allocation(lp_nuSubChannels,1,1)=mob_handle_number;
                st_baseStation.mobId(lp_nuSubChannels,1,1)=uint32(st_mobileStations(mob_handle_number).MobNumber(st_initConfig.nFrmCntSlot));
                st_baseStation.ueDistance(lp_nuSubChannels,1,1)=uint16(round(abs(st_initConfig.locMS(mob_handle_number) - st_initConfig.locBS(st_initConfig.desiredBsIdx))));
                st_baseStation.poweradjust(lp_nuSubChannels,1,1) = st_mobileStations(mob_handle_number).poweradjust(1,1,lp_nuSubChannels);
            end
    otherwise        
end

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
午夜精品123| 成人av资源网站| 成人少妇影院yyyy| 欧美精品国产精品| 中文在线一区二区| 久久精品国产一区二区| 99国内精品久久| 久久免费视频色| 免费在线一区观看| 欧美在线不卡一区| 国产精品久久国产精麻豆99网站| 麻豆一区二区99久久久久| 欧美综合亚洲图片综合区| 国产精品乱码久久久久久| 久久国产夜色精品鲁鲁99| 欧美无人高清视频在线观看| 国产精品久久久久久妇女6080 | 欧美影片第一页| 国产午夜亚洲精品午夜鲁丝片| 视频一区二区三区入口| 欧美日韩中文字幕一区| 中文字幕一区二区三区蜜月| 国产精品一区久久久久| 久久影院视频免费| 久久国产精品99久久人人澡| 日韩三级伦理片妻子的秘密按摩| 亚洲午夜精品久久久久久久久| 99久久99久久精品免费观看| 国产精品视频一二三区 | 欧美成va人片在线观看| 日韩在线一二三区| 欧美女孩性生活视频| 亚洲综合男人的天堂| 日本乱人伦一区| 一区二区三区日韩| 色综合久久综合中文综合网| 中文字幕免费不卡在线| 成人美女在线观看| 成人欧美一区二区三区视频网页| 波多野洁衣一区| 国产精品久久久久久久久久免费看 | 久久久久久久久久久99999| 久久er99热精品一区二区| 精品裸体舞一区二区三区| 久久精品免费观看| 久久精品视频网| 成人在线一区二区三区| 中文字幕日韩一区| 欧美这里有精品| 天天色天天操综合| 精品国产伦一区二区三区观看方式 | 制服丝袜av成人在线看| 另类人妖一区二区av| 久久综合色8888| www.亚洲激情.com| 亚洲一区二区三区中文字幕在线| 欧美丝袜丝交足nylons| 老汉av免费一区二区三区 | 这里只有精品99re| 精品一区二区三区免费播放| 国产目拍亚洲精品99久久精品 | 国产精品资源站在线| 国产精品对白交换视频 | www.性欧美| 日韩精品一级中文字幕精品视频免费观看 | 日韩欧美aaaaaa| 波多野结衣亚洲一区| 亚洲午夜影视影院在线观看| 日韩欧美久久一区| www.99精品| 日本女人一区二区三区| 国产欧美日韩激情| 欧美网站大全在线观看| 国产精品一区二区你懂的| 亚洲综合男人的天堂| 久久嫩草精品久久久精品| 欧亚洲嫩模精品一区三区| 韩国三级电影一区二区| 亚洲一区二区三区四区五区黄| 精品精品国产高清a毛片牛牛| 91在线观看免费视频| 精品一区二区三区av| 亚洲精品国产精品乱码不99| 精品久久久久久亚洲综合网| 色婷婷av一区二区三区软件| 国产乱人伦精品一区二区在线观看| 亚洲综合久久久| 国产精品久久看| 久久久一区二区三区| 91精品国产免费| 欧美亚洲一区二区三区四区| 成人精品视频一区| 精品一二三四在线| 亚洲bdsm女犯bdsm网站| 自拍偷拍亚洲欧美日韩| ww亚洲ww在线观看国产| 欧美日韩不卡一区| 91国产免费看| 成人在线一区二区三区| 狠狠色丁香婷综合久久| 日韩在线卡一卡二| 香蕉成人啪国产精品视频综合网| 中文字幕在线观看一区二区| 久久久国产综合精品女国产盗摄| 欧美一区二区三区的| 欧美三区在线视频| 在线观看日韩电影| 色噜噜久久综合| 91在线观看免费视频| 成人久久视频在线观看| 高清久久久久久| 国产一本一道久久香蕉| 精品在线视频一区| 国内偷窥港台综合视频在线播放| 日本va欧美va精品| 全国精品久久少妇| 欧美96一区二区免费视频| 蜜臀av亚洲一区中文字幕| 日韩av中文在线观看| 麻豆国产精品视频| 久久99九九99精品| 国产高清一区日本| 成人18视频日本| 97成人超碰视| 欧美日韩日日摸| 欧美欧美午夜aⅴ在线观看| 欧美一区二区三区四区久久| 欧美一区二区三区色| 精品国产91洋老外米糕| 久久久91精品国产一区二区三区| 国产日韩精品一区二区三区| 国产精品三级视频| 亚洲精品免费播放| 五月激情六月综合| 国产在线观看一区二区| 成人毛片视频在线观看| 91久久久免费一区二区| 欧美日韩不卡在线| 2021久久国产精品不只是精品| 久久久久久麻豆| 亚洲黄色小视频| 麻豆精品一区二区| 国产成人免费av在线| 色成年激情久久综合| 制服.丝袜.亚洲.另类.中文 | 亚洲一区二区三区三| 美女视频一区二区三区| 成人小视频在线观看| 欧美午夜不卡在线观看免费| 精品国产乱码久久久久久浪潮| 国产日韩欧美不卡| 午夜精品久久久久久久久| 九色综合狠狠综合久久| 97久久精品人人做人人爽| 欧美顶级少妇做爰| 国产嫩草影院久久久久| 天天影视网天天综合色在线播放| 国产一区二区视频在线播放| 日韩欧美一区电影| 国产精品国模大尺度视频| 天天色天天爱天天射综合| 成人小视频在线观看| 日韩一卡二卡三卡| 亚洲三级久久久| 国产乱子伦视频一区二区三区| 91久久一区二区| 欧美经典三级视频一区二区三区| 五月天视频一区| 色婷婷亚洲一区二区三区| 亚洲精品一区二区三区香蕉| 亚洲国产cao| 东方aⅴ免费观看久久av| 欧美一区二区女人| 一区二区三区精品在线观看| 国产成人综合精品三级| 69堂精品视频| 一区二区高清免费观看影视大全| 国产成人丝袜美腿| 欧美电影免费观看高清完整版| 亚洲午夜影视影院在线观看| 99视频在线精品| 国产亚洲人成网站| 麻豆国产欧美一区二区三区| 欧美三级中文字幕在线观看| 中文字幕欧美一| 成人免费观看男女羞羞视频| 亚洲精品一区二区在线观看| 日韩精品欧美成人高清一区二区| 在线欧美日韩国产| 1000精品久久久久久久久| 成人午夜大片免费观看| 国产亚洲女人久久久久毛片| 国产一区高清在线| 久久午夜国产精品| 激情五月婷婷综合网| 欧美成人a在线| 精品一区二区三区在线播放| 26uuu精品一区二区在线观看| 久久国产成人午夜av影院| 精品三级在线观看|