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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? crossf.m

?? Cross frecuency relations
?? M
?? 第 1 頁 / 共 5 頁
字號:
   Tf.win = dftfilt(winsize,maxfreq/srate,cycles,padratio,cyclesfact);   Tf.nb_points = size(Tf.win,2);end;Tf.tmpalltimes = zeros(Tf.nb_points, timesout);trials = length(X)/frame;if saveall   Tf.tmpall     = repmat(nan,[trials timesout Tf.nb_points]);else   Tf.tmpall = [];endTf.tmpallbool = zeros(trials,timesout);Tf.ITCdone = 0;if Tf.subitc   Tf.ITC  = zeros(Tf.nb_points, timesout);   switch Tf.type,	   case { 'coher' 'phasecoher2' }		Tf.ITCcumul  = zeros(Tf.nb_points, timesout);   end;end;% function for itc% ----------------function [Tf, itcvals] = tfitc(Tf, trials, times);Tf = tfcomp(Tf, trials, times);switch Tf.type   case 'coher',      Tf.ITC(:,times)      = Tf.ITC(:,times) + Tf.tmpalltimes; % complex coher.      Tf.ITCcumul(:,times) = Tf.ITCcumul(:,times)+abs(Tf.tmpalltimes).^2;   case 'phasecoher2',      Tf.ITC(:,times)      = Tf.ITC(:,times) + Tf.tmpalltimes; % complex coher.      Tf.ITCcumul(:,times) = Tf.ITCcumul(:,times)+abs(Tf.tmpalltimes);   case 'phasecoher',      Tf.ITC(:,times)      = Tf.ITC(:,times) + Tf.tmpalltimes ./ abs(Tf.tmpalltimes);                                                             % complex coher.end % ~any(isnan())return;function [Tf, itcvals] = tfitcpost(Tf, trials);switch Tf.type   case 'coher',       Tf.ITC = Tf.ITC ./ sqrt(trials * Tf.ITCcumul);   case 'phasecoher2', Tf.ITC = Tf.ITC ./ Tf.ITCcumul;   case 'phasecoher',  Tf.ITC = Tf.ITC / trials; % complex coher.end % ~any(isnan())if Tf.saveall  Tf.ITC = transpose(Tf.ITC); % do not use ' otherwise conjugate	%imagesc(abs(Tf.ITC)); colorbar; figure;	%squeeze(Tf.tmpall(1,1,1:Tf.nb_points))	%squeeze(Tf.ITC   (1,1,1:Tf.nb_points))	%Tf.ITC = shiftdim(Tf.ITC, -1);	Tf.ITC = repmat(shiftdim(Tf.ITC, -1), [trials 1 1]);	Tf.tmpall = (Tf.tmpall - abs(Tf.tmpall) .* Tf.ITC) ./ abs(Tf.tmpall);  %	for index = 1:trials  %		imagesc(squeeze(abs(Tf.tmpall(index,:,:)))); drawnow; figure;  %		Tf.tmpall(index,:,:) = (Tf.tmpall(index,:,:) - Tf.tmpall(index,:,:) .* Tf.ITC)./Tf.tmpall(index,:,:);  %		imagesc(squeeze(abs(Tf.tmpall(index,:,:)))); drawnow;  %		subplot(10,10, index); imagesc(squeeze(abs(Tf.tmpall(index,:,:)))); caxis([0 1]); drawnow;  %	end;  %	squeeze(Tf.tmpall(1,1,1:Tf.nb_points))  %	figure; axcopy;end;Tf.ITCdone = 1;return;% function for time freq decomposition% ------------------------------------function [Tf, tmpX] = tfcomp(Tf, trials, times);% tf is an structure containing all the information about the decompositionfor trial = trials   for index = times      if ~Tf.tmpallbool(trial, index) % already computed         tmpX = Tf.X([1:Tf.winsize]+floor((index-1)*Tf.stp)+(trial-1)*Tf.frame);                  if ~any(isnan(tmpX)) % perform the decomposition            tmpX = tmpX - mean(tmpX);            switch Tf.detret, case 'on',                tmpX = detrend(tmpX);             end;                        if Tf.cycles == 0 % use FFTs               tmpX = Tf.win .* tmpX(:);               tmpX = fft(tmpX,Tf.padratio*Tf.winsize);               tmpX = tmpX(2:Tf.padratio*Tf.winsize/2+1);            else                tmpX = transpose(Tf.win) * tmpX(:);            end         else            tmpX = NaN;         end;         if Tf.ITCdone            tmpX = (tmpX - abs(tmpX) .* Tf.ITC(:,index)) ./ abs(tmpX);         end;         Tf.tmpalltimes(:,index) = tmpX;         if Tf.saveall            Tf.tmpall(trial, index,:) = tmpX;            Tf.tmpallbool(trial, index) = 1;         end	  else		  Tf.tmpalltimes(:,index) = Tf.tmpall(trial, index,:);     end;   end;end;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%    COHERENCE    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function for coherence initialisation% -------------------------------------function Coher = coherinit(nb_points, trials, timesout, type);Coher.R  = zeros(nb_points,timesout);       % mean coherence% Coher.RR = repmat(nan,nb_points,timesout); % initialize with nansCoher.type = type;Coher.Rn=zeros(trials,timesout);switch type case 'coher',  Coher.cumulX = zeros(nb_points,timesout);  Coher.cumulY = zeros(nb_points,timesout); case 'phasecoher2',  Coher.cumul  = zeros(nb_points,timesout);end;% function for coherence calculation% -------------------------------------% function Coher = cohercomparray(Coher, tmpX, tmpY, trial);% switch Coher.type%   case 'coher',%      Coher.R = Coher.R + tmpX.*conj(tmpY); % complex coher.%      Coher.cumulXY = Coher.cumulXY + abs(tmpX).*abs(tmpY);%   case 'phasecoher',%      Coher.R = Coher.R + tmpX.*conj(tmpY) ./ (abs(tmpX).*abs(tmpY)); % complex coher.%      Coher.Rn(trial,:) = 1;% end % ~any(isnan())function [Coher,tmptrialcoh] = cohercomp(Coher, tmpX, tmpY, trial, time);tmptrialcoh = tmpX.*conj(tmpY);switch Coher.type   case 'coher',      Coher.R(:,time) = Coher.R(:,time) + tmptrialcoh; % complex coher.      Coher.cumulX(:,time) = Coher.cumulX(:,time) + abs(tmpX).^2;      Coher.cumulY(:,time) = Coher.cumulY(:,time) + abs(tmpY).^2; case 'phasecoher2',      Coher.R(:,time) = Coher.R(:,time) + tmptrialcoh; % complex coher.      Coher.cumul(:,time) = Coher.cumul(:,time) + abs(tmptrialcoh);   case 'phasecoher',      Coher.R(:,time) = Coher.R(:,time) + tmptrialcoh ./ abs(tmptrialcoh); % complex coher.	  %figure; imagesc(abs(tmpX.*conj(tmpY) ./ (abs(tmpX).*abs(tmpY))));      Coher.Rn(trial,time) = Coher.Rn(trial,time)+1;end % ~any(isnan())% function for post coherence calculation% ---------------------------------------function Coher = cohercomppost(Coher, trials);switch Coher.type case 'coher',   Coher.R = Coher.R ./ sqrt(Coher.cumulX) ./ sqrt(Coher.cumulY); case 'phasecoher2',   Coher.R = Coher.R ./ Coher.cumul; case 'phasecoher',   Coher.Rn = sum(Coher.Rn, 1);   Coher.R  = Coher.R ./ (ones(size(Coher.R,1),1)*Coher.Rn); % coherence magnitudeend;% function for 2 conditions coherence calculation% -----------------------------------------------function [coherimage, coherimage1, coherimage2] = coher2conddiff( allsavedcoher, alltrials, cond1trials, type, tfx, tfy);	t1s = alltrials(1:cond1trials);	t2s = alltrials(cond1trials+1:end);	switch type	 case 'coher',	  coherimage1 = sum(allsavedcoher(:,:,t1s),3) ./ sqrt(sum(tfx(:,:,t1s),3)) ./ sqrt(sum(tfy(:,:,t1s),3));	  coherimage2 = sum(allsavedcoher(:,:,t2s),3) ./ sqrt(sum(tfx(:,:,t2s),3)) ./ sqrt(sum(tfy(:,:,t1s),3));	 case 'phasecoher2',	  coherimage1 = sum(allsavedcoher(:,:,t1s),3) ./ sum(abs(allsavedcoher(:,:,t1s)),3);	  coherimage2 = sum(allsavedcoher(:,:,t2s),3) ./ sum(abs(allsavedcoher(:,:,t2s)),3);	 case 'phasecoher',	  coherimage1 = sum(allsavedcoher(:,:,t1s),3) / cond1trials;	  coherimage2 = sum(allsavedcoher(:,:,t2s),3) / (size(allsavedcoher,3)-cond1trials);	end;	coherimage = coherimage2 - coherimage1;	%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% BOOTSTRAP %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function for bootstrap initialisation% -------------------------------------function Boot = bootinit(Coherboot, nb_points, timesout, naccu, baselength, baseboot, boottype, alpha, rboot);Boot.Rboot       = zeros(nb_points,naccu);  % summed bootstrap coherBoot.boottype    = boottype;Boot.baselength  = baselength;Boot.baseboot    = baseboot;Boot.Coherboot   = Coherboot;Boot.naccu       = naccu;Boot.alpha       = alpha;Boot.rboot       = rboot;% function for bootstrap computation% ----------------------------------function Boot = bootcomp(Boot, Rn, tmpalltimesx, tmpalltimesy);if ~isnan(Boot.alpha) & isnan(Boot.rboot)   if strcmp(Boot.boottype, 'times') % get g.naccu bootstrap estimates for each trial      goodbasewins = find(Rn==1);      if Boot.baseboot % use baseline windows only         goodbasewins = find(goodbasewins<=Boot.baselength);       end      ngdbasewins = length(goodbasewins);      j=1;      tmpsX = zeros(size(tmpalltimesx,1), Boot.naccu);      tmpsY = zeros(size(tmpalltimesx,1), Boot.naccu);      if ngdbasewins > 1         while j<=Boot.naccu            s = ceil(rand([1 2])*ngdbasewins); % random ints [1,g.timesout]            s = goodbasewins(s);            if ~any(isnan(tmpalltimesx(:,s(1)))) & ~any(isnan(tmpalltimesy(:,s(2))))               tmpsX(:,j) = tmpalltimesx(:,s(1));               tmpsY(:,j) = tmpalltimesy(:,s(2));               j = j+1;            end         end         Boot.Coherboot = cohercomp(Boot.Coherboot, tmpsX, tmpsY, 1, 1:Boot.naccu);      end;   endend;% handle other trial bootstrap types% ----------------------------------function [Boot, Rbootout] = bootcomppost(Boot, allRn, alltmpsX, alltmpsY);trials    = size(alltmpsX, 1);times     = size(alltmpsX, 2);nb_points = size(alltmpsX, 3);if ~isnan(Boot.alpha) & isnan(Boot.rboot)   if strcmp(Boot.boottype, 'trials') % get g.naccu bootstrap estimates for each trial      fprintf('\nProcessing trial bootstrap (of %d):',times(end));      tmpsX = zeros(size(alltmpsX,3), Boot.naccu);      tmpsY = zeros(size(alltmpsY,3), Boot.naccu );      Boot.fullcoherboot = zeros(nb_points, Boot.naccu, times);            for index=1:times         if rem(index,10) == 0,  fprintf(' %d',index); end         if rem(index,120) == 0, fprintf('\n'); end         for allt=1:trials            j=1;            while j<=Boot.naccu               t = ceil(rand([1 2])*trials); % random ints [1,g.timesout]               if (allRn(t(1),index) == 1) & (allRn(t(2),index) == 1)                  tmpsX(:,j) = squeeze(alltmpsX(t(1),index,:));                  tmpsY(:,j) = squeeze(alltmpsY(t(2),index,:));                  j = j+1;               end            end            Boot.Coherboot = cohercomp(Boot.Coherboot, tmpsX, tmpsY, 1, 1:Boot.naccu);         end;         Boot.Coherboot = cohercomppost(Boot.Coherboot);  % CHECK IF NECSSARY FOR ALL BOOT TYPE         Boot.fullcoherboot(:,:,index) = Boot.Coherboot.R;          Boot.Coherboot = coherinit(nb_points, trials, Boot.naccu, Boot.Coherboot.type);      end;      Boot.Coherboot.R = Boot.fullcoherboot;      Boot = rmfield(Boot, 'fullcoherboot');   elseif strcmp(Boot.boottype, 'timestrials') % handle timestrials bootstrap      fprintf('\nProcessing time and trial bootstrap (of %d):',trials);      tmpsX = zeros(size(alltmpsX,3), Boot.naccu);      tmpsY = zeros(size(alltmpsY,3), Boot.naccu );      for allt=1:trials         if rem(allt,10) == 0,  fprintf(' %d',allt); end         if rem(allt,120) == 0, fprintf('\n'); end         j=1;         while j<=Boot.naccu            t = ceil(rand([1 2])*trials); % random ints [1,g.timesout]            goodbasewins = find((allRn(t(1),:) & allRn(t(2),:)) ==1);            if Boot.baseboot % use baseline windows only               goodbasewins = find(goodbasewins<=baselength);             end            ngdbasewins = length(goodbasewins);                        if ngdbasewins>1               s = ceil(rand([1 2])*ngdbasewins); % random ints [1,g.timesout]               s=goodbasewins(s);                              if all(allRn(t(1),s(1)) == 1) & all(allRn(t(2),s(2)) == 1)                  tmpsX(:,j) = squeeze(alltmpsX(t(1),s(1),:));                  tmpsY(:,j) = squeeze(alltmpsY(t(2),s(2),:));                  j = j+1;               end            end         end         Boot.Coherboot = cohercomp(Boot.Coherboot, tmpsX, tmpsY, 1, 1:Boot.naccu);      end      Boot.Coherboot = cohercomppost(Boot.Coherboot);   elseif strcmp(Boot.boottype, 'times') % boottype is 'times'      Boot.Coherboot = cohercomppost(Boot.Coherboot);   end;end;% test if precomputedif ~isnan(Boot.alpha) & isnan(Boot.rboot) % if bootstrap analysis included . . .   % 'boottype'='times' or 'timestrials', size(R)=nb_points*naccu   % 'boottype'='trials',                 size(R)=nb_points*naccu*times   Boot.Coherboot.R = abs (Boot.Coherboot.R);   Boot.Coherboot.R = sort(Boot.Coherboot.R,2);   % compute bootstrap significance level   i = round(Boot.naccu*Boot.alpha);   Boot.Rsignif = mean(Boot.Coherboot.R(:,Boot.naccu-i+1:Boot.naccu),2); % significance levels for Rraw   Boot.Coherboot.R = squeeze(mean(Boot.Coherboot.R(:,Boot.naccu-i+1:Boot.naccu),2));   if size(Boot.Coherboot.R, 2) == 1	   Rbootout(:,2) = Boot.Coherboot.R;   else	   Rbootout(:,:,2) = Boot.Coherboot.R;   end;   % BEFORE   %Rboot = [mean(Rboot(1:i,:)) ; mean(Rboot(g.naccu-i+1:g.naccu,:))];elseif ~isnan(Boot.rboot)	Boot.Coherboot.R = Boot.rboot;	Boot.Rsignif     = Boot.rboot	Rbootout         = Boot.rboot;else 	Boot.Coherboot.R = [];	Boot.Rsignif     = [];	Rbootout         = [];end % NOTE: above, mean ?????function w = hanning(n)if ~rem(n,2)   w = .5*(1 - cos(2*pi*(1:n/2)'/(n+1)));   w = [w; w(end:-1:1)];else   w = .5*(1 - cos(2*pi*(1:(n+1)/2)'/(n+1)));   w = [w; w(end-1:-1:1)];end

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩一区精品字幕| 国产人伦精品一区二区| 国产成人亚洲综合a∨婷婷| 亚洲精品久久久久久国产精华液| 亚洲午夜视频在线观看| 欧美激情一区二区在线| 不卡的av电影| 久色婷婷小香蕉久久| 悠悠色在线精品| 久久噜噜亚洲综合| 欧美一卡二卡在线| 欧美中文字幕一区二区三区| 国产成人日日夜夜| 免费久久精品视频| 亚洲一二三四区不卡| 国产精品电影一区二区三区| 欧美一级理论片| 欧美三级视频在线| 99re这里只有精品6| 国产成人在线网站| 青青草伊人久久| 天天综合日日夜夜精品| 亚洲美女屁股眼交| 国产精品国产三级国产三级人妇| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 亚洲一级在线观看| 国产精品成人免费在线| 国产午夜精品美女毛片视频| 日韩欧美综合一区| 91精品国产色综合久久久蜜香臀| 日本精品视频一区二区| 99久久er热在这里只有精品66| 国产成人在线视频网站| 国产精品一区二区在线看| 国产一区在线观看视频| 韩国视频一区二区| 国产精品资源在线| 国产激情一区二区三区桃花岛亚洲 | 欧美激情一区二区三区不卡| 久久久午夜精品理论片中文字幕| 欧美xxxxxxxxx| 精品国产污污免费网站入口| 欧美一区2区视频在线观看| 欧美一区二视频| 欧美电影一区二区三区| 日韩一区二区三区电影在线观看| 欧美一区二区性放荡片| 日韩欧美黄色影院| 精品sm捆绑视频| 久久久不卡影院| 日本一区二区久久| 1024成人网| 一区二区三区免费网站| 亚洲国产欧美在线| 日本欧美肥老太交大片| 狠狠色丁香婷婷综合| 国产宾馆实践打屁股91| av不卡免费在线观看| 色丁香久综合在线久综合在线观看| 在线看一区二区| 欧美日韩国产综合视频在线观看| 在线不卡a资源高清| 国产精品久久久久久久久久久免费看| 美腿丝袜一区二区三区| 蜜桃免费网站一区二区三区| 国产真实乱子伦精品视频| 波多野结衣在线aⅴ中文字幕不卡| 91视频在线观看免费| 亚洲情趣在线观看| 丝袜亚洲精品中文字幕一区| 精久久久久久久久久久| voyeur盗摄精品| 欧美精品乱码久久久久久按摩| 日韩欧美综合在线| 中文字幕av一区二区三区免费看 | 欧美日韩二区三区| 精品黑人一区二区三区久久 | 日韩经典中文字幕一区| 国产99久久久久久免费看农村| 色成年激情久久综合| 欧美大片免费久久精品三p| 欧美国产一区视频在线观看| 亚洲资源中文字幕| 国产一区二区福利视频| 色久综合一二码| 久久嫩草精品久久久精品一| 欧美亚洲综合另类| 欧美亚洲综合久久| 欧美成人高清电影在线| 中文字幕一区二区三区色视频| 亚洲国产精品综合小说图片区| 紧缚奴在线一区二区三区| 91浏览器在线视频| 精品乱人伦小说| 亚洲国产一区二区视频| 国产成人啪免费观看软件| 欧美天天综合网| 国产精品久久久久久久久动漫| 日韩电影在线看| 91丨国产丨九色丨pron| 久久青草国产手机看片福利盒子| 一区二区三区在线视频播放| 国产精品一色哟哟哟| 日韩一区二区三| 亚洲激情图片一区| 成人开心网精品视频| 精品理论电影在线| 日日噜噜夜夜狠狠视频欧美人| 99精品视频一区二区| 久久久99久久精品欧美| 色狠狠综合天天综合综合| 久久精品视频一区二区| 亚洲国产日韩a在线播放性色| 成人av网站在线观看免费| 日韩一区二区免费电影| 亚洲成av人片在线观看| 91影院在线免费观看| 国产女人18水真多18精品一级做| 久国产精品韩国三级视频| 91麻豆精品久久久久蜜臀| 亚洲精品va在线观看| 99久久99久久精品免费看蜜桃| 精品精品国产高清a毛片牛牛| 日本不卡一区二区三区| 欧美日韩国产精选| 亚洲制服欧美中文字幕中文字幕| 色综合天天综合色综合av| 亚洲国产高清在线观看视频| 国产一区二区三区高清播放| 欧美大片日本大片免费观看| 麻豆精品一区二区综合av| 欧美一级片在线观看| 喷白浆一区二区| 日韩午夜在线影院| 奇米一区二区三区| 欧美一区二区视频在线观看 | 91蝌蚪porny成人天涯| 久久久久久久久久久久电影| 久久精品国产第一区二区三区| 91精品国产欧美一区二区18| 视频一区二区三区中文字幕| 91麻豆精品国产综合久久久久久 | 日韩精品欧美精品| 3d成人h动漫网站入口| 日韩成人dvd| 日韩精品一区在线观看| 国产精品中文欧美| 日本一区二区三区电影| av成人老司机| 伊人开心综合网| 欧美日韩性生活| 久久精品国产久精国产爱| 精品国产99国产精品| 国产乱码字幕精品高清av| 国产精品污www在线观看| 91猫先生在线| 日韩电影在线一区二区三区| 26uuu成人网一区二区三区| 成人精品免费看| 玉足女爽爽91| 日韩午夜av一区| 国产成a人亚洲| 亚洲一区二区欧美| 精品国产髙清在线看国产毛片 | 精品一区二区三区视频| 日本一二三不卡| 欧洲av在线精品| 狠狠色综合日日| 亚洲美女一区二区三区| 欧美一区二区三区免费大片 | 91一区二区三区在线观看| 亚洲成人免费观看| 国产区在线观看成人精品| 欧美亚洲动漫制服丝袜| 久久69国产一区二区蜜臀| 亚洲男同性视频| 日韩视频一区二区在线观看| 成人av电影免费观看| 日本特黄久久久高潮| 国产精品三级电影| 91精品国产麻豆| 99久久久久久99| 久久国产精品99久久久久久老狼| 日韩美女精品在线| 欧美不卡视频一区| 欧美午夜片在线看| 国产激情视频一区二区在线观看| 一区二区三区成人| 久久网站最新地址| 在线播放视频一区| av网站免费线看精品| 另类小说视频一区二区| 亚洲精品中文在线影院| 久久久亚洲欧洲日产国码αv| 欧美日韩免费电影| 99re亚洲国产精品| 国产一区美女在线| 日韩av网站在线观看| 亚洲综合一区在线| 国产欧美日韩另类视频免费观看|