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

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

?? attentionstrats.m

?? 一個用MATLAB編寫的優(yōu)化控制工具箱
?? M
字號:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Simulator for Attentional Strategies%% By: Kevin Passino% Version: 4/19/01%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%clearTmax=100;  					% Length of simulation time (real time, in seconds)Tsample=0.01; 				% Sampling period (used to discretize)Nsteps=(1/Tsample)*Tmax;  	% Number of steps to run the simulationN=4;         				% Number of predators/preyT=0*ones(N,Nsteps+1); % T(i,k) will denote the number of steps that predator/prey i has					  % been ignored as of step k.  This simply allocates memory 					  % for it.%-------------------------% Predator/prey characteristics:%-------------------------e=0*ones(N,Nsteps+1); % Allocate memory for predators/prey signals% Define predators/prey appearance instants (note that f(i,1) refers to predator/prey i, and that predator/prey i% has priority i, where higher values of i indicate higher priority predators/prey)f(:,1)=0*ones(N,1); % Allocate memoryf(1,1)=1.2*(1/Tsample);  % Sets that we want an appearance from predator/prey 1 every f(1,1) steps (1.2 sec.)						 % (this sets the frequency of appearance)f(2,1)=1.5*(1/Tsample);  f(3,1)=2*(1/Tsample);  f(4,1)=1*(1/Tsample);  %f(5,1)=1.7*(1/Tsample);fcounter(:,1)=ones(N,1); % Allocate memory for counters % Next, define the bounds delta^i on the maximum amount of time between the appearances of each predator/prey% (note that these must be consistent with the choice for the f(;,1) parameters above that define when the % appearances occur).  These are given in real time, not steps.deltai(1,1)=1.3; % Overbounds a choice of 1.2 abovedeltai(2,1)=1.6; deltai(3,1)=2.3;deltai(4,1)=1.1;%deltai(5,1)=1.75;%---------------------------% Organism characteristics:%---------------------------% Pick attentional strategy (scheduler)  typesched=1; % Chooses the policy of choosing the predator/prey that has been ignored for the longest time%sched=2; % Chooses the policy of choosing the predator/prey that is the highest priority one that has       % been ignored longer than the average one%sched=3; % Chooses the policy of choosing the predators/prey that may be the most difficult to find          % (of course if the a(:,1) are all the same then this is the same as sched=1)%sched=4; % Chooses the policy of choosing the predators/prey that may be most difficult to detect% For sched=4, need weighting factorsw(1,1)=2;w(2,1)=1;  w(3,1)=1;  w(4,1)=1;  peakest=0*ones(N,1); % Allocate memory for computation of estimate of peak for sched=4% Set the a_i parameters so that the capacity condition is met:epsilon=0.1;                    % Used to define a_i parameters nexta(:,1)=epsilon*(1/N)*ones(N,1); % Picks so will meet capacity condition - scale it                                       % (other choices are possible)% Another choice:%a(1,1)=0.1;%a(2,1)=0.2;%a(3,1)=0.3;%a(4,1)=0.399;deltas=1*Tsample; % Sets the delay (in steps) that it takes before the organism can                  % switch from focusing on one predator/prey to another.				 % NOTE: This only accounts for part of the "delta" used in the book.				 % This is the part due to switching from one predator/prey to another.  deltacounter=0; % Used to implement the deltas delaydecisiontime=1; % Signals that it is a time (if =1) that pick a new predators/prey 				% to focus on (initially pick one to focus on)predpreyfocusedon=0*ones(Nsteps+1,1); % Initialize variable that indicates which predators/prey is 					% currently being focused on (if in a delay period, means					% the one that it is trying to focus on)predpreyprocess=0;	% Flag to indicate that switch delay is overdetectedpredprey=0; % Flag that indicates that the predators/prey that is focused on is detected					% (=0 means not detected, =1 means detected)%-------------------------------------------------% Variables for measuring performance:%-------------------------------------------------avgT=0*ones(Nsteps+1,1); % avgT(k,1) denotes the average size of T at each step						 % (average of N values)maxT=0*ones(Nsteps+1,1); % maxT(k,1) denotes the maximum size of any T at each step						 % (maximum of N values)avgP=0; % Time average of priorities							%-----------------------------------% Start simulation loop:%-----------------------------------for k=1:Nsteps		for i=1:N	 % First generate the appearance signals at step k		if fcounter(i,1)>=f(i,1); % Check if have waited long enough to appear								  %(notice here have >= so since due to how the frequency of								  % occurences of appearances are defined so that f can be  fraction)			e(i,k+1)=1; % Appear			fcounter(i,1)=1; % Reset counter		else			e(i,k+1)=0; % Do not appear			fcounter(i,1)=fcounter(i,1)+1; % Increment counter		end	end	% Compute some performance measures that can be used in decision making:	% (and for plotting later)	avgT(k,1)=(1/N)*sum(T(:,k));	maxT(k,1)=max(T(:,k));	if decisiontime~=1; 		predpreyfocusedon(k,1)=predpreyfocusedon(k-1,1); % If not a decision time then same focus as last time	end		% Decide which predators/prey to focus on:	if decisiontime==1; % Test if it is a decision time		% Policy of choosing the predator/prey that has been ignored for the longest time		if sched==1		[val,predpreyfocusedon(k,1)]=max(T(:,k)); % Pick predator/prey that has largest T at time k		end		% Policy of choosing the predator/prey that is the highest priority one that has       	% been ignored longer than the average one				if sched==2		for j=1:N  % Consider predators/prey numbered 1,..,N with N being the highest priority predator/prey			if T(j,k)>=avgT(k,1)  % Pick the predator/prey encountered that is above the average (so									% this picks the highest priority one that is above the average)									% Of course there are some wasted computations here...				predpreyfocusedon(k,1)=j;			end		end		end			% Policy of choosing the predator/prey that may be the most difficult to find		if sched==3		[val,predpreyfocusedon(k,1)]=max(a(:,1).*T(:,k)); % Scales the T(i,k) 														% elements by a(i,1) in making choice		end				% Policy of choosing the predators/prey that may be most difficult to detect		if sched==4 			for j=1:N			peakest(j,1)=w(j,1)*(a(j,1)/(1-a(j,1)))*(T(j,k)+deltas+deltai(j,1));			end		[val,predpreyfocusedon(k,1)]=max(peakest); % Picks the predator/prey expected to have the highest peak		end				decisiontime=0; % Do not decide again until detect that predators/prey (consider it						% "detected" when T(i,.) goes to zero)							end	if deltacounter>=deltas  % First, implement delay due to switching from one predator/prey to another		predpreyprocess=1;  % Flag to indicate that we are now going to focus on the predator/prey	else		deltacounter=deltacounter+Tsample; % Increment delay since computing T(i,k+1) (note that										% at every time we are focusing on something so										% at every time we need to compute this delay)										% Also, note that below the test for the delay 										% accounts for incrementing the counter past delta	end	if predpreyprocess==1  % If switch delay is over, then can start trying to detect predator/prey		if e(predpreyfocusedon(k,1),k)==1 % Consider this test for "detection" to only indicate one pulse			detectedpredprey=1;  % If detect predators/prey set flag%			D=k; % The time that an predators/prey pulse was found		end	end	if predpreyprocess==1 & detectedpredprey==1		deltaT=((1-a(predpreyfocusedon(k,1),1))/a(predpreyfocusedon(k,1),1))*Tsample;		if T(predpreyfocusedon(k,1),k)-deltaT>0;  % Must test if will hit zero (to keep nonneg)			T(predpreyfocusedon(k,1),k+1)=T(predpreyfocusedon(k,1),k)-deltaT; 		else 			T(predpreyfocusedon(k,1),k+1)=0; % Set it to zero since it finishes (an approximation							% that is accurate in the sense that it is conservative)			deltacounter=0; % Reset the delay counter to prepare for next predator/prey			decisiontime=1; % Signal a decision time since just detected an predator/prey			detectedpredprey=0; % Reset for use in detection of next predator/prey			predpreyprocess=0;  % Reset for next loop		end			else		T(predpreyfocusedon(k,1),k+1)=T(predpreyfocusedon(k,1),k)+Tsample; % Increment amount of time 																		% since last detect	end	for i=1:N 		if i~=predpreyfocusedon(k,1); % If predator/prey that is focused on is not i			T(i,k+1)=T(i,k)+Tsample; % Update the amounts of time since last focused on each predator/prey		end	endend%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Plot results%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%time=0:Tsample:Tmax;figure(1)clfsubplot(411)stem(time,e(1,:))title('Predator/prey appearances, N=4')subplot(412)stem(time,e(2,:))subplot(413)stem(time,e(3,:))subplot(414)stem(time,e(4,:))xlabel('Time, sec.')figure(2)clfsubplot(311)stairs(time,predpreyfocusedon)title('Predator/prey focused on and length of time since last detect (i=1,2)')subplot(312)plot(time,T(1,:))subplot(313)plot(time,T(2,:))xlabel('Time, sec.')figure(3)clfsubplot(311)stairs(time,predpreyfocusedon)title('Predator/prey focused on and length of time since last detect (i=3,4)')subplot(312)plot(time,T(3,:))subplot(313)plot(time,T(4,:))xlabel('Time, sec.')% Compute the time average of the priorities (like a measure of control energy).% This gives a measure of how well the scheduling policy did on focusing on higher% priority pedators/prey disp('----------------------------------------------------------------')scheddisp('----------------------------------------------------------------')disp('The time average of the priorities is=')avgP=(1/(Nsteps+1))*sum(predpreyfocusedon)figure(4)clfsubplot(211)stairs(time,predpreyfocusedon)title('Predator/prey focused on')xlabel('Time, sec.')hold onplot(time,avgP,'r.')hold offsubplot(212)plot(time,T)xlabel('Time, sec.')title('Lengths of times since last detected each predator/prey')% Compute some performance measures:disp('The time average of the average values of the lengths of times waited=')(1/(Nsteps+1))*sum(avgT)  % Computes the time average of the average valuesdisp('The maximum of the average values of the lengths of times waited=')max(avgT)  % Computes the maximum of the average valuesdisp('The time average of the maximum values of the lengths of times waited=')(1/(Nsteps+1))*sum(maxT)  % Computes the time average of the max valuesdisp('The maximum of the maximum values of the lengths of times waited=')max(maxT)  % Computes the maximum of the max valuesdisp('----------------------------------------------------------------')figure(5)clfsubplot(211)plot(time,avgT,time,(1/(Nsteps+1))*sum(avgT),'r.')title('Average length of time since last detect')xlabel('Time, sec.')subplot(212)plot(time,maxT,time,(1/(Nsteps+1))*sum(maxT),'r.')xlabel('Time, sec.')title('Maximum length of time since last detect')%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% End of program%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩毛片一二三区| 成人免费视频视频| 国产精品一二三区在线| av电影在线不卡| 精品99一区二区| 午夜精品久久久| 99精品视频一区二区三区| 欧美一级免费大片| 一个色妞综合视频在线观看| 高清成人在线观看| 久久综合999| 日产欧产美韩系列久久99| 一本久久精品一区二区| 日本一区二区免费在线| 国产一区二区三区免费观看| 91精品久久久久久久99蜜桃| 亚洲一区二区三区四区在线免费观看| 成人免费视频网站在线观看| 久久影院视频免费| 理论电影国产精品| 日韩欧美一区中文| 亚洲成人福利片| 欧美日韩国产中文| 午夜精品久久久久久不卡8050| 在线免费观看成人短视频| 亚洲人成伊人成综合网小说| 成人丝袜视频网| 国产精品成人网| a级精品国产片在线观看| 国产精品动漫网站| 99精品视频中文字幕| 亚洲欧美激情在线| 91蝌蚪porny成人天涯| 亚洲欧美一区二区不卡| 色系网站成人免费| 亚洲一区二区三区在线| 欧美麻豆精品久久久久久| 亚洲r级在线视频| 欧美一区二区视频网站| 韩国av一区二区三区在线观看| 欧美精品一区二区久久婷婷| 国产一区二区在线视频| 久久精品人人做人人爽人人| 不卡一区二区三区四区| 亚洲视频综合在线| 欧美日韩一区二区在线视频| 亚洲123区在线观看| 欧美一区二区在线免费播放| 国内精品国产三级国产a久久| 久久久久亚洲蜜桃| 91麻豆产精品久久久久久| 午夜av电影一区| 欧美mv日韩mv国产网站| 粉嫩aⅴ一区二区三区四区五区| 中文字幕亚洲综合久久菠萝蜜| 日本乱人伦一区| 奇米影视一区二区三区| 日韩精品久久久久久| 精品国精品国产尤物美女| 成人黄色免费短视频| 亚洲福利电影网| 久久久精品人体av艺术| 91蜜桃视频在线| 日本亚洲三级在线| 国产精品视频免费| 欧美精品丝袜中出| 懂色av中文一区二区三区| 亚洲国产一二三| 久久精品在线免费观看| 在线一区二区三区四区五区| 久久99九九99精品| 亚洲日本护士毛茸茸| 91精品国产91久久综合桃花| 99久久久久免费精品国产 | 日本在线不卡一区| 欧美国产在线观看| 91精品国产综合久久精品性色| 国产精品一级二级三级| 亚洲国产精品一区二区久久恐怖片 | 成人免费观看av| 日韩高清在线观看| 亚洲色图欧美偷拍| 精品国产成人在线影院 | ●精品国产综合乱码久久久久| 欧美精品在线视频| 99re在线精品| 国产乱国产乱300精品| 亚洲成人7777| 亚洲激情综合网| 国产欧美日韩三级| 日韩亚洲欧美在线| 欧美日韩精品二区第二页| 91美女片黄在线观看| 东方aⅴ免费观看久久av| 麻豆91小视频| 日韩精品电影一区亚洲| 一区二区在线观看免费视频播放| 久久久无码精品亚洲日韩按摩| 欧美久久久久久久久中文字幕| av不卡在线播放| 成人黄色在线看| 国产69精品久久久久777| 国内精品在线播放| 六月婷婷色综合| 欧美bbbbb| 亚洲成av人片一区二区三区| 亚洲免费av观看| 亚洲人成人一区二区在线观看 | 亚洲高清在线精品| 亚洲第一av色| 偷窥少妇高潮呻吟av久久免费| 亚洲欧美日韩综合aⅴ视频| 国产精品国产三级国产普通话三级 | 日韩在线一区二区三区| 亚洲午夜国产一区99re久久| 亚洲一区二区三区在线| 亚洲一区免费视频| 午夜日韩在线电影| 日本怡春院一区二区| 热久久国产精品| 久久机这里只有精品| 久久99九九99精品| 国产91精品在线观看| 成人18精品视频| 91国偷自产一区二区三区观看| 91福利视频网站| 制服.丝袜.亚洲.中文.综合| 欧美成人r级一区二区三区| 精品处破学生在线二十三| 久久精品一区蜜桃臀影院| 国产精品毛片a∨一区二区三区| 国产精品黄色在线观看| 夜夜嗨av一区二区三区网页| 日韩av在线播放中文字幕| 国模一区二区三区白浆| 99视频超级精品| 欧美日韩国产123区| 精品免费日韩av| 国产精品久久久久久久久久久免费看 | 日本女优在线视频一区二区| 久热成人在线视频| 国产99久久精品| 欧美性大战xxxxx久久久| 91精品国产综合久久精品app| 精品国产精品一区二区夜夜嗨| 国产精品美女久久久久久久久久久| 一区二区三区中文字幕电影| 日韩电影免费在线看| 成人app在线| 91精品国产色综合久久ai换脸 | 亚洲成人久久影院| 国产aⅴ精品一区二区三区色成熟| 日本韩国一区二区三区| 欧美mv日韩mv国产网站app| 亚洲蜜臀av乱码久久精品| 久久国产精品区| 在线精品国精品国产尤物884a| 精品国产三级a在线观看| 亚洲精品国产精品乱码不99| 久久国产精品99久久久久久老狼| 色综合视频在线观看| 久久久久久麻豆| 日韩不卡免费视频| 91豆麻精品91久久久久久| 久久综合色婷婷| 亚洲电影视频在线| 99re热视频精品| 欧美精品一区二区三区蜜桃视频 | 国产欧美久久久精品影院| 午夜激情一区二区| 色偷偷88欧美精品久久久| 久久夜色精品一区| 美腿丝袜亚洲一区| 欧美日产国产精品| 亚洲免费观看高清完整版在线观看熊| 韩国成人福利片在线播放| 欧美精品久久一区| 一区二区三区成人| 91丨porny丨蝌蚪视频| 久久久99久久精品欧美| 蜜桃视频在线观看一区| 欧美美女视频在线观看| 亚洲精品国产一区二区精华液| 国产精品888| 精品久久99ma| 青青草国产成人av片免费| 欧美电影影音先锋| 亚洲国产日韩综合久久精品| 91视频xxxx| 亚洲色图欧洲色图婷婷| 99久久久无码国产精品| 国产精品网站在线播放| 国产91丝袜在线播放| 国产情人综合久久777777| 国产电影精品久久禁18| 久久这里都是精品| 国产一区日韩二区欧美三区| 精品成人一区二区| 国产精品综合一区二区三区| 国产视频一区二区在线观看|