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

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

?? timefrq.m

?? 含有多種ICA算法的eeglab工具箱
?? M
字號:
% timefrq() - progressive Power Spectral Density estimates on a single %             EEG channel using out-of-bounds and muscle activity rejection %             tests. Uses Matlab FFT-based psd().% Usage: %   >> [Power,frqs,times,rejections] = timefrq(data,srate,subwindow);%   >> [Power,frqs,times,rejections] = ...%                        timefrq(data,subwindow,fftwindow,substep, ...%                          epochstep,overlap,srate,nfreqs, ...%                             rejthresh,minmuscle,maxmuscle,musthresh);%% Inputs:%       data        = single-channel (1,frames) EEG data      {none}%       srate       = data sampling rate (Hz)                 {256 Hz}%       subwindow   = subepoch data length per psd()          {<=256}%%       fftwindow   = subepoch FFT window length after zero-padding %                            (determines freq bin width)      {subwindow}%       substep     = subepoch step interval in frames        {subwindow/4}%       epochstep   = output epoch step in frames             {subwindow*2}%       overlap     = overlap between output epochs in frames {subwindow*2}%                     total epoch length is (overlap+epochstep)%       nfreqs      = nfreqs to output (2:nfreqs+1), no DC    {fftwindow/4}%       rejthresh   = abs() rejection threshold for subepochs {off}%                     If in (0,1) == percentage of data to reject; else %                     reject subepochs reaching > the given abs value.%       minmuscle   = lower bound of muscle band (Hz)         {30 Hz}%       maxmuscle   = upper bound of muscle band (Hz)         {50 Hz}%       musthresh   = mean muscle-band power rejection threshold %                            (no percentile option)           {off}%% Note: frequency of resulting rejections in tty output %       ('o'=out-of-bounds rejection;'+' = muscle band rejection)%% Outputs: %            Power - time-frequency transform of data (nfreqs,data_epochs)%            frqs  - frequency bin centers (in Hz) [DC bin not returned]%            times - midpoints of the output analysis epochs (in sec.)%            rejections - 8-element vector of rejection statistics =% [rejthresh,musthresh,goodepochs,badepochs,subacc,subrej,oobrej,musrej]%            *  rejthresh = out-of-bounds abs rejection threshold %            *  musthresh = muscle-band power rejection threshold %            *  goodepochs,badepochs = numbers of epochs accepted/rejected%            *  subacc,subrej = numbers of subepochs accepted/rejected%            *  oobrej,musrej = numbers of subepochs rejected for oob/muscle%% Authors: Tzyy-Ping Jung & Scott Makeig, SCCN/INC/UCSD, La Jolla, 10/1/97 %% See also: timef() % Copyright (C) 10/1/97 Tzyy-Ping Jung & Scott Makeig, SCCN/INC/UCSD, scott@sccn.ucsd.edu%% This program is free software; you can redistribute it and/or modify% it under the terms of the GNU General Public License as published by% the Free Software Foundation; either version 2 of the License, or% (at your option) any later version.%% This program is distributed in the hope that it will be useful,% but WITHOUT ANY WARRANTY; without even the implied warranty of% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the% GNU General Public License for more details.%% You should have received a copy of the GNU General Public License% along with this program; if not, write to the Free Software% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA% $Log: timefrq.m,v $% Revision 1.1  2002/04/05 17:36:45  jorn% Initial revision%% 11-17-97 added rejections vector output -sm% 01-25-02 reformated help & license, added links -ad function [Power,frqs,times,rejections] = timefrq(data,subwindow,fftwindow,substep,epochstep,overlap,srate,nfreqs,rejthresh,minmuscle,maxmuscle,musclethresh);MINMUSCLE = 30; % HzMAXMUSCLE = 50; % HzDEFAULT_SRATE = 256; % HzMIN_SUBWINDOW = 8;MAX_SUBWINDOW = 256;MINSUBEPOCHS = 3;  % min number of non-rejected subepochs to median-averageSURFPLOT = 1;      % flag to make a surf(|) plot of the time*freq resultsHISTPLOT = 0;      % flag to plot the EEG histogramOOB      = 1e22;   % out-of-bounds large numberif nargin<1  help timefrq  returnend[chans,frames] = size(data);if chans>1,  fprintf('timefrq(): data must be one-channel.\n');  help timefrq  returnendif nargin < 12  musclethresh = 0;endif musclethresh==0,  musclethresh = OOB; % DEFAULTendif nargin < 11  maxmuscle = 0;endif maxmuscle==0,  maxmuscle = MAXMUSCLE; % DEFAULTendif nargin < 10  minmuscle = 0;endif minmuscle==0,  minmuscle = MINMUSCLE; % DEFAULTendif nargin < 9  rejthresh = 0;endif rejthresh==0,  rejthresh = OOB; % DEFAULTendif nargin < 8  nfreqs = 0;endif nargin < 7  srate = 0;endif srate==0,  srate = DEFAULT_SRATE;endif nargin < 6  overlap = 0;endif nargin < 5,  epochstep =0;endif nargin < 4,  substep =0;endif nargin < 3  fftwindow =0;endif nargin < 2,  subwindow = 0;endif subwindow==0,  subwindow = 2^round((log(frames/64)/log(2))); % DEFAULT  if subwindow > MAX_SUBWINDOW,     fprintf('timefrq() - reducing subwindow length to %d.\n',subwindow);     subwindow = MAX_SUBWINDOW;  endendif subwindow < MIN_SUBWINDOW  fprintf('timefrq() - subwindow length (%d) too short.\n',subwindow);  returnendif fftwindow==0,  fftwindow=subwindow; % DEFAULTendif fftwindow < subwindow  fprintf('timefrq() - fftwindow length (%d) too short.\n',fftwindow);  returnend  if substep==0,  substep=round(subwindow/4); % DEFAULTendif substep < 1  fprintf('timefrq() - substep length (%d) too short.\n',substep);  returnend  if epochstep==0,  epochstep=subwindow*2; % DEFAULTendif epochstep < 1  fprintf('timefrq() - epochstep length (%d) too short.\n',epochstep);  returnend  if overlap==0,  overlap=subwindow*2; % DEFAULTendif overlap > epochstep  fprintf('timefrq() - overlap (%d) too large.\n',overlap);  returnend  if nfreqs==0,  nfreqs=floor(fftwindow/2); % DEFAULTendif nfreqs > floor(fftwindow/2)  fprintf('timefrq() - nfreqs (%d) too large.\n',nfreqs);  returnend%%%%%%%%%%%%%%%% Compute rejection threshold from percentile %%%%%%%%%%%%%%%%if rejthresh > 0 & rejthresh < 1.0,disp yes    data = data - mean(data); % make data mean-zero    fprintf('Sorting mean-zeroed data to compute rejection threshold...\n');    sortdat = sort(abs(data));    rejpc = 1.0-rejthresh;    idx = max(1,round(rejpc*frames));    rejthresh = sortdat(idx);    titl = [ 'Out-of-bounds rejection threshold is +/-' ...                   num2str(rejthresh) ...                      ' (' num2str(100*rejpc) ' %ile)'];  if HISTPLOT  %  %%%%%%%%%%%%%% Plot data histogram %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  %    figure;        % plot figure for reference    hist(data,50); % histogram with 50 bins    hold on;     ax = axis; % get current axis limits    axis([ax(1) ax(2) ax(3) frames/50]); % see side bins clearly    plot([rejthresh rejthresh],[0 1e10],'g');    plot([-rejthresh -rejthresh],[0 1e10],'g');    title(titl);  else    fprintf('%s\n',titl);    fprintf('timefrq(): data histogram plotting disabled.\n');  endendif nfreqs > fftwindow/2   fprintf('fftwindow of %d will output only %d frequencies.\n',...                  fftwindow,fftwindow/2);   returnelseif nfreqs<1   help timefrq   fprintf('Number of output frequencies must be >=1.\n');   returnendPower=zeros(nfreqs+1,floor(frames/epochstep));                                    % don't use a final partial epochbadepochs=0;   % epochs rejectedtotacc = 0;    % subepochs acceptedtotrej = 0;    % subepochs rejectedmusrej = 0;    % subepochs rejected for muscle artifactoobrej = 0;    % subepochs rejected for out-of-bounds valuesfirstpsd = 1;  % logical variablezcol = zeros(fftwindow/2+1,1); % column of zeros%%%%%%%%%%%%%%%%%%%%%%%%% Print header info %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%start = 1;stop=min(epochstep,frames);fprintf('\nMoving power spectrum will use epochs of %d frames\n',...             epochstep+overlap)fprintf('output at intervals of %d frames.\n',epochstep);fprintf('Each epoch is composed of %d subepochs of %d frames\n',...             floor((epochstep+overlap+1-subwindow)/substep), subwindow);fprintf('starting at %d-frame intervals', substep);if fftwindow>subwindow,   fprintf(' and zero-padded to %d frames\n',fftwindow);else   fprintf('.\n')endfprintf(...'Rejection criteria: "o" out-of-bounds (>%g), "+" muscle activity (>%g)\n',...             rejthresh,musclethresh);%%%%%%%%%%%%%%%%%%%%%% Process data epochs %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%times = zeros(1,1+floor((frames-subwindow)/epochstep));frqs = zeros(1,nfreqs+1); % initialize in case no valid psd returnsptmpzeros=zeros(fftwindow/2+1,ceil((stop-start+1)/substep));epoch = 0;       % epoch counterfor I=1:epochstep:frames-subwindow ;  % for each epoch . . .  epoch=epoch+1;  start=max(1,I-overlap);  stop=min(I+epochstep+overlap-1,frames);  times(epoch) = round((stop+start)/2); % midpoint of data epoch  %  %%%%%%%%%%%%%%%%%%%%%%%%%% Process subepochs %%%%%%%%%%%%%%%%%%%%%%%%%%%%%   %  tmp=data(start:stop); % copy data subepoch  subepoch=0; % subepoch counter  rej = 0; % initialize subepoch rejections counter  ptmp=ptmpzeros; % start with zeros  for j=1:substep:stop-start+1-subwindow , % for each subepoch . . .    subepoch=subepoch+1;    % idx=find(abs(tmp(j:min(j+subwindow-1,stop-start+1))) <= rejthresh);    % if length(idx) > subwindow/2 | subepoch == 1    idx=find(abs(tmp(j:min(j+subwindow-1,stop-start+1))) > rejthresh);    if length(idx) == 0                % If no point in subepoch out of bounds      datwin = tmp(j:j+subwindow-1)-mean(tmp(j:j+subwindow-1));                                       % get 1 power est. for subepoch.      [ptmp(:,subepoch),frqs]=psd(datwin,fftwindow,srate,hanning(subwindow),0);      if firstpsd > 0                  % On very first subepoch         muscle = find(frqs>=minmuscle & frqs<=maxmuscle);         firstpsd = 0;                 % compute muscle band frequency bins.      end      if mean(ptmp(muscle,subepoch))>musclethresh          rej = rej+1; fprintf('+')     % If muscle-band out of bounds          musrej = musrej+1;         if subepoch > 1                                   ptmp(:,subepoch)=ptmp(:,subepoch-1); % reject for muscle noise.         else            ptmp(:,subepoch)=zcol;     % set back to zeros         end      end    else                               % some data value out of bounds      rej = rej+1;fprintf('o')         % so reject for out of bounds      oobrej = oobrej+1;      if subepoch > 1         ptmp(:,subepoch)=ptmp(:,subepoch-1);              end    end  end                 % end of subepochs  k = 1;  while ptmp(:,k) == zcol   % while subepoch power values all zeros . . .   % sum(ptmp(:,k))     k = k+1;     if k >  subepoch,          break     end  end  if rej>0,     fprintf('\n');     fprintf(' epoch %d: %d of %d subepochs rejected ',epoch,rej,subepoch);     totrej = totrej+rej;     totacc = totacc+(subepoch-rej);  else     fprintf('.');  end  if k>subepoch     fprintf('(no non-zero subepochs)\n',k);  elseif k>1     fprintf('(first non-zero subepoch %d)\n',k);  elseif rej>0     fprintf('\n')  end  if k<= subepoch & subepoch-rej >= MINSUBEPOCHS     Power(:,epoch)=[median(ptmp(1:nfreqs+1,k:subepoch)')]';                                           % omit initial zero cols  elseif epoch > 1     Power(:,epoch) = Power(:,epoch-1);     fprintf ('')     badepochs = badepochs+1;  endend % end epochsPower = Power(2:nfreqs+1,:);  % omit DC power binfrqs = frqs(2:nfreqs+1);    % omit DC power bintimes = times/srate;  % convert to secondsif length(times)>1       time_interval = times(2)-times(1);else       time_interval = 0;endif nargout>3,   rejections = [rejthresh,musclethresh,epoch-badepochs,badepochs,...                        totacc,totrej,oobrej,musrej]; endif epoch<1  fprintf('No epochs processed: too little data.\n');  returnend%%%%%%%%%%%%%%%%% Print trailer info %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%fprintf('\nTotal of %d epochs processed (%d rejected).\n',...                         epoch,badepochs);fprintf('Output is %d freqs by %d epochs.\n',...                         nfreqs,length(times));fprintf('Output epoch length %d frames (%g secs).\n', ...           epochstep+overlap,(epochstep+overlap)/srate);fprintf('Output interval %d frames (%g secs).\n', ...                         epochstep,time_interval);fprintf('First and last time points: %g and %g secs.\n',...                         times(1),times(length(times)));%%%%%%%%%%%%%%%% Make surf() plot of time-frequency distribution %%%%%%%if nfreqs>1 & epoch>1 & SURFPLOT   if min(min(Power))>0    fprintf('Plot shows dB log(Power) - Power output is not log scaled.\n');    off    = [50 -50 0 0];      % successive figure offset in pixels    pos = get(gcf,'Position');    figure('Position',pos+off); % make the 2nd plot offset from the 1st        surf(times,frqs,10*log(Power)/log(10))    view([0 90]); % top view    xlabel('Time (sec)')    ylabel('Frequency (Hz)')    shading interp    title('timefrq()');    c=colorbar;    t=axes('Position',[0 0 1 1],'Visible','off');    text(0.85,0.08,'dB','Parent',t);  else    fprintf('Some or all output Power estimates were zero - too many rejections?\n');  endend

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美成人女星排名| ㊣最新国产の精品bt伙计久久| 国产激情一区二区三区桃花岛亚洲| 亚洲欧洲韩国日本视频| 欧美一区二区三区的| 99re6这里只有精品视频在线观看 99re8在线精品视频免费播放 | 一区二区三区蜜桃网| 精品日韩成人av| 91九色最新地址| 国产成人精品影院| 免费观看在线色综合| 夜夜嗨av一区二区三区中文字幕| 2欧美一区二区三区在线观看视频| 欧洲一区二区av| 成人av小说网| 国产一区二区三区久久悠悠色av| 亚洲18女电影在线观看| 亚洲乱码国产乱码精品精小说| 久久影音资源网| 制服丝袜亚洲精品中文字幕| 欧美中文字幕一区二区三区亚洲| 成人美女在线视频| 久久66热偷产精品| 日本欧洲一区二区| 天堂一区二区在线免费观看| 伊人夜夜躁av伊人久久| 国产精品电影一区二区三区| 国产三区在线成人av| 精品不卡在线视频| 日韩欧美一级精品久久| 7777精品伊人久久久大香线蕉超级流畅 | 一区二区三区在线免费视频| 国产精品狼人久久影院观看方式| 久久精品亚洲麻豆av一区二区 | 丰满少妇久久久久久久| 国产乱码一区二区三区| 精品一区二区精品| 看电视剧不卡顿的网站| 美洲天堂一区二卡三卡四卡视频| 五月综合激情网| 亚洲韩国一区二区三区| 亚洲一区二区欧美| 亚洲第四色夜色| 亚洲国产成人porn| 亚洲高清免费视频| 亚洲 欧美综合在线网络| 亚洲成人av一区二区三区| 亚洲bt欧美bt精品777| 石原莉奈一区二区三区在线观看 | 九九国产精品视频| 精品在线一区二区三区| 韩国视频一区二区| 成人在线综合网| 成人动漫av在线| 色嗨嗨av一区二区三区| 欧美性三三影院| 91精品国产入口| 精品国产乱码久久| 中文子幕无线码一区tr| 亚洲精品中文字幕乱码三区 | **性色生活片久久毛片| 亚洲自拍偷拍欧美| 日韩不卡免费视频| 国产在线麻豆精品观看| 成人小视频免费在线观看| 99视频在线精品| 欧美久久久久免费| 精品剧情v国产在线观看在线| 精品处破学生在线二十三| 亚洲国产精品精华液ab| 亚洲精品视频在线| 美女脱光内衣内裤视频久久影院| 国产在线播放一区| 色综合久久综合中文综合网| 欧美精品第1页| 久久久久久久久97黄色工厂| 亚洲欧洲日韩在线| 午夜精品久久久久影视| 国产精品一区二区久激情瑜伽| caoporen国产精品视频| 在线不卡a资源高清| 中文字幕乱码亚洲精品一区| 亚洲国产日韩一区二区| 国内精品视频666| 色噜噜狠狠色综合欧洲selulu| 91麻豆精品91久久久久同性| 国产精品视频观看| 日韩综合小视频| 成人开心网精品视频| 91精品国产综合久久精品图片| 欧美经典一区二区| 日韩精品一卡二卡三卡四卡无卡| 国产91在线|亚洲| 欧美日韩欧美一区二区| 久久精品一区八戒影视| 丝袜美腿一区二区三区| 97久久超碰国产精品| 精品久久人人做人人爰| 亚洲在线中文字幕| 粉嫩aⅴ一区二区三区四区| 欧美精品粉嫩高潮一区二区| 亚洲三级电影网站| 韩国三级中文字幕hd久久精品| 欧美三区在线视频| 亚洲欧美综合在线精品| 国产在线看一区| 91.麻豆视频| 伊人一区二区三区| av在线播放成人| 国产色一区二区| 国产综合成人久久大片91| 欧美少妇xxx| 亚洲激情自拍偷拍| 成人免费观看男女羞羞视频| 欧美成人video| 午夜精品久久久久久久久久久 | 日韩精品成人一区二区三区| 91在线视频观看| 中文字幕 久热精品 视频在线| 久久99久久精品| 欧美一区二区三区四区视频| 一级中文字幕一区二区| 91麻豆精品在线观看| 国产精品久久久久久久久动漫 | 国产一区二区免费在线| 91精品在线观看入口| 亚洲高清免费观看 | 国产欧美1区2区3区| 国产一区二区三区日韩| 精品伦理精品一区| 麻豆国产欧美日韩综合精品二区 | 美日韩一区二区三区| 在线播放中文字幕一区| 日韩在线a电影| 欧美精品一二三区| 欧美一区二区黄色| 亚洲国产高清不卡| 国内精品国产成人国产三级粉色 | 国产肉丝袜一区二区| 国产精品中文字幕日韩精品| 26uuu国产一区二区三区| 极品少妇一区二区| 精品国产免费人成在线观看| 久久se精品一区精品二区| 亚洲精品一区在线观看| 国产一区二区三区久久久| 国产日韩欧美高清| 岛国精品在线观看| 亚洲欧洲中文日韩久久av乱码| 色综合咪咪久久| 午夜精品久久久久久久99水蜜桃 | 亚洲人成人一区二区在线观看| 99视频有精品| 亚洲mv大片欧洲mv大片精品| 91精品国产综合久久久久| 久久国产剧场电影| 国产日韩欧美一区二区三区乱码| 不卡欧美aaaaa| 亚洲蜜臀av乱码久久精品蜜桃| 欧美日韩在线播放三区四区| 奇米综合一区二区三区精品视频| 久久综合狠狠综合| av一本久道久久综合久久鬼色| 亚洲精品乱码久久久久久| 欧美日韩国产另类一区| 毛片基地黄久久久久久天堂| 国产欧美一区二区精品性色超碰| 色狠狠色噜噜噜综合网| 蜜臀av一区二区在线免费观看| 国产亚洲一本大道中文在线| 一本色道a无线码一区v| 日本欧美一区二区三区乱码 | 久久久综合九色合综国产精品| 成人美女在线视频| 亚洲国产精品一区二区www| 26uuu另类欧美| 色伊人久久综合中文字幕| 日韩av在线发布| 欧美国产精品久久| 欧美日韩成人一区| 国产成人免费在线观看| 亚洲电影一级黄| 久久久久久毛片| 欧美日韩五月天| 国产成人亚洲综合色影视| 亚洲国产一区二区a毛片| 久久蜜桃av一区精品变态类天堂 | 成人一区二区三区| 五月综合激情网| 中文字幕永久在线不卡| 91精品欧美一区二区三区综合在| 成人sese在线| 美女视频黄a大片欧美| 亚洲日本在线观看| 久久精品视频免费观看| 91精品国产高清一区二区三区蜜臀 | 天天操天天色综合| 亚洲欧美日韩中文播放| 久久色成人在线| 欧美日韩不卡视频|