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

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

?? windowed mi.m

?? Windowed mutual information
?? M
字號:
function [c_out, l_out, t_out] = migram(varargin)%MIGRAM Calculate windowed mutual information between two signals.%   I = MIGRAM(A,B,MAXLAG,WINDOW,NOVERLAP) calculates the windowed mutual   %   information between the signals in vector A and vector B. MIGRAM splits  %   the signals into overlapping segments and forms the columns of I with %   their mutual information values up to maximum lag specified by scalar %   MAXLAG. Each column of I contains the mutual information function %   between the short-term, time-localized signals A and B.  Time increases%   linearly across the columns of I, from left to right.  Lag increases %   linearly down the rows, starting at -MAXLAG. If lengths of A and B %   differ, the shorter signal is filled with zeros. If N is the length of %   the signals, I is a matrix with 2*MAXLAG+1 rows and %         k = fix((N-NOVERLAP)/(WINDOW-NOVERLAP)) %   columns.%%   I = MIGRAM(A,B,MAXLAG,WINDOW,NOVERLAP,NBINS) calculates the mutual%   information based on histograms with the number of bins NBINS.%%   I = MIGRAM(...,'norm') calculates the renormalised mutual%   information, which is I/log(NBINS) and ensures a value range [0 1].%%   [I,L,T] = MIGRAM(...) returns a column of lag L and one of time T%   at which the mutual information is computed. L has length equal %   to the number of rows of I, T has length k.%%   I = MIGRAM(A,B) calculates windowed mutual information using defeault%   settings; the defeaults are MAXLAG = floor(0.1*N), WINDOW = floor(0.1*N),%   NOVERLAP = 0 and NBINS = 10. You can tell MIGRAM to use the defeault %   for any parameter by leaving it off or using [] for that parameter, e.g. %   MIGRAM(A,B,[],1000).%%   MIGRAM(A,B) with no output arguments plots the mutual information %   using the current figure.%%   EXAMPLE:%       x = cos(0:.01:10*pi)';%       y = sin(0:.01:10*pi)' + .5 * randn(length(x),1);%       migram(x,y)%%   See also MI, CORRGRAM.% Copyright (c) 2007 by AMRON% Norbert Marwan, Potsdam University, Germany% http://www.agnld.uni-potsdam.de%% $Date: 2007/06/20 09:24:47 $% $Revision: 5.5 $error(nargchk(2,7,nargin))verbose = 0;x = varargin{1}; y = varargin{2};x = x(:); y = y(:);% check input and inital setting of parametersnx = length(x); ny = length(y);if nx < ny    % zero-pad x if it has length less than y    x(ny) = 0; nx = ny;endif ny < nx    % zero-pad y if it has length less than x    y(nx) = 0;endmaxlag = floor(nx/10); window = floor(nx/10);noverlap = 0;nbins = 10;norm = 0;i_num = find(cellfun('isclass',varargin,'double'));i_char = find(cellfun('isclass',varargin,'char'));if length(i_num) > 2 && ~isempty(varargin{i_num(3)})    maxlag = varargin{i_num(3)};    if maxlag < 0, error('Requires positive integer value for maximum lag.'), end    if length(maxlag) > 1, error('Requires MAXLAG to be a scalar.'), endendif length(i_num) > 3 && ~isempty(varargin{i_num(4)})    window = varargin{i_num(4)};    if window <= 0, error('Requires positive integer value for window length.'), end    if length(window) > 1, error('Requires WINDOW to be a scalar.'), endendif length(i_num) > 4 && ~isempty(varargin{i_num(5)})    noverlap = varargin{i_num(5)};    if noverlap < 0, error('Requires positive integer value for NOVERLAP.'), end    if length(noverlap) > 1, error('Requires NOVERLAP to be a scalar.'), end    if noverlap >= window, error('Requires NOVERLAP to be strictly less than the window length.'), endendif length(i_num) > 5 && ~isempty(varargin{i_num(6)})    nbins = varargin{i_num(6)};    if nbins <= 0, error('Requires positive integer value for NBINS.'), end    if length(nbins) > 1, error('Requires NBINS to be a scalar.'), endend% normalise the resultfor i = 1:length(i_char)    if strcmpi(varargin(i_char(i)), 'norm'), norm = 1; endend% prepare time delayed signalsX = buffer(x,maxlag+1,maxlag)';Y = fliplr(buffer(y,maxlag+1,maxlag)');% divide the delayed signals into overlapping windows% and compute the correlation coefficientcnt = 1;warning('off','MATLAB:divideByZero')C = zeros(2*maxlag+1, fix((nx-noverlap)/(window-noverlap)));if verbose, h = waitbar(0,'Compute mutual information'); end% -MAXLAG:0[Yi dummy] = buffer(Y(:,1),window,noverlap,'nodelay');if exist('accumarray','builtin') == 5    for i = 1:size(X,2), if verbose, waitbar(cnt/(2*size(X,2))), end        [Xi dummy] = buffer(X(:,i),window,noverlap,'nodelay');        C(cnt,:) = MI6(Xi, Yi, nbins);        cnt = cnt + 1;    endelse    for i = 1:size(X,2), if verbose, waitbar(cnt/(2*size(X,2))), end        [Xi dummy] = buffer(X(:,i),window,noverlap,'nodelay');        C(cnt,:) = MI5(Xi, Yi, nbins);        cnt = cnt + 1;    endend% 0:MAXLAG[Xi dummy] = buffer(X(:,end),window,noverlap,'nodelay');if exist('accumarray','builtin') == 5    for i = 2:size(Y,2), if verbose, waitbar(cnt/(2*size(X,2))), end        [Yi dummy] = buffer(Y(:,i),window,noverlap,'nodelay');        C(cnt,:) = MI6(Xi, Yi, nbins);        cnt = cnt + 1;    endelse    for i = 2:size(Y,2), if verbose, waitbar(cnt/(2*size(X,2))), end        [Yi dummy] = buffer(Y(:,i),window,noverlap,'nodelay');        C(cnt,:) = MI5(Xi, Yi, nbins);        cnt = cnt + 1;    endendif verbose, delete(h), endwarning('on','MATLAB:divideByZero')% create time scale for the windowst = (1:nx/size(Xi,2):nx)';l = (-maxlag:maxlag)';% if result has to be normalisedif norm    C = C / log(nbins);end% display and output resultif nargout == 0    newplot    imagesc(t, l, C)    xlabel('Time'), ylabel('Lag'), axis xy    title('Windowed mutual information', 'fontweight', 'bold')    colorbarelseif nargout == 1,    c_out = C;elseif nargout == 2,    c_out = C;    l_out = l;elseif nargout == 3,    c_out = C;    t_out = t;    l_out = l;end% mutual information for Matlab version >= 6function Z = MI6(x, y, nbins)        % normalise the data and replace the values with integers    % in the range [1 nbins]    x = x - repmat(min(x), size(x,1), 1);     y = y - repmat(min(y), size(y,1), 1);    x = x ./ repmat(max(x) + eps, size(x,1), 1);     y = y ./ repmat(max(y) + eps, size(y,1), 1);        x = floor(x * nbins) + 1;    y = floor(y * nbins) + 1;        % compute probabilities    Z = zeros(1,size(x,2));    for i = 1:size(x,2)            Pxy = accumarray([x(:,i) y(:,i)] + 1, 1);        Px = sum(Pxy,1);        Py = sum(Pxy,2);        Pxy = Pxy / sum(Pxy(:));        Px = Px / sum(Px(:));        Py = Py / sum(Py(:));        % entropies        Ix = -sum((Px(Px ~= 0)) .* log(Px(Px ~= 0)));        Iy = -sum((Py(Py ~= 0)) .* log(Py(Py ~= 0)));        Ixy = -sum(Pxy(Pxy ~= 0) .* log(Pxy(Pxy ~= 0)));                                                                                    % mutual information        Z(i) = Ix + Iy - Ixy;    end            % mutual information for Matlab version < 6function Z = MI5(x, y, nbins)           % normalise the data and replace the values with integers    % in the range [1 nbins]    x = x - repmat(min(x), size(x,1), 1);     y = y - repmat(min(y), size(y,1), 1);    x = x ./ repmat(max(x) + eps, size(x,1), 1);     y = y ./ repmat(max(y) + eps, size(y,1), 1);        x = floor(x * nbins) + 1;    y = floor(y * nbins) + 1;        % compute probabilities    Z = zeros(1,size(x,2));    for i = 1:size(x,2)            Pxy = full(sparse(x(:,i) + 1, y(:,i) + 1, 1));        Px = sum(Pxy,1);        Py = sum(Pxy,2);        Pxy = Pxy / sum(Pxy(:));        Px = Px / sum(Px(:));        Py = Py / sum(Py(:));        % entropies        Ix = -sum((Px(Px ~= 0)) .* log(Px(Px ~= 0)));        Iy = -sum((Py(Py ~= 0)) .* log(Py(Py ~= 0)));        Ixy = -sum(Pxy(Pxy ~= 0) .* log(Pxy(Pxy ~= 0)));                                                                                    % mutual information        Z(i) = Ix + Iy - Ixy;    end        

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲视频一区在线| 国产一区二区免费看| 日韩精品一二三四| 日韩精品91亚洲二区在线观看| 亚洲一区二区在线播放相泽| 亚洲成人自拍网| 亚洲电影在线播放| 亚洲日本va在线观看| 亚洲精品免费在线观看| 日本欧美韩国一区三区| 国产精品一区二区无线| 99久久夜色精品国产网站| 欧洲精品在线观看| 欧美成人a在线| 久久久国产精品不卡| 亚洲一区二区三区视频在线播放| 亚洲国产日韩综合久久精品| 六月丁香婷婷久久| 不卡在线观看av| 欧美高清视频一二三区 | 亚洲视频综合在线| 亚洲成人黄色影院| 狠狠色丁香婷综合久久| 欧美写真视频网站| 久久久久久一二三区| 亚洲免费资源在线播放| 另类欧美日韩国产在线| 欧美在线小视频| 国产精品久久夜| 国产一区二区三区日韩| 日韩欧美成人一区| 亚洲人成7777| 青草av.久久免费一区| 欧美一级夜夜爽| 亚洲欧美偷拍卡通变态| 风流少妇一区二区| 欧美日韩精品综合在线| 亚洲精品免费电影| 成人网在线播放| 国产精品久线观看视频| 久久激五月天综合精品| 91福利在线观看| 亚洲三级小视频| 91精品国产综合久久久久久久| 亚洲一区二区免费视频| 欧美在线观看视频在线| 丝袜诱惑制服诱惑色一区在线观看| 成人福利在线看| 国产精品剧情在线亚洲| 91免费视频观看| 国产女主播一区| 国产成人综合自拍| 亚洲色大成网站www久久九九| 在线观看日韩毛片| 免费成人结看片| 亚洲国产成人在线| 色婷婷久久久久swag精品| 亚洲精品午夜久久久| 91精品午夜视频| 国产91精品久久久久久久网曝门| 国产精品久久毛片av大全日韩| 91蜜桃视频在线| 蜜臀a∨国产成人精品| 久久久99精品久久| 欧美三区在线观看| 成人午夜激情影院| 久久国产成人午夜av影院| 欧美国产一区二区在线观看| 欧美日韩你懂得| 久久精品国产一区二区| 一区二区三区免费观看| 久久精品亚洲乱码伦伦中文| 欧美猛男gaygay网站| 国产风韵犹存在线视精品| 亚洲一区中文在线| 一区二区三区在线视频观看| 中文字幕在线不卡一区二区三区| 欧美一级生活片| 91精品国产免费| 色天天综合久久久久综合片| 美女mm1313爽爽久久久蜜臀| 日韩电影在线免费看| 一区二区三区在线观看视频| 中文字幕av免费专区久久| 精品国产乱码久久久久久1区2区| 欧美日韩在线精品一区二区三区激情| 日韩福利电影在线| 亚洲国产sm捆绑调教视频| 亚洲精品自拍动漫在线| 亚洲女女做受ⅹxx高潮| 国产精品卡一卡二卡三| 国产精品传媒入口麻豆| 日本一区二区三区在线不卡| 一色桃子久久精品亚洲| 综合久久给合久久狠狠狠97色 | 亚洲福利视频三区| 人妖欧美一区二区| 久久国产福利国产秒拍| 看电视剧不卡顿的网站| 一级做a爱片久久| 一区二区三区自拍| 看国产成人h片视频| 国产一区欧美一区| 色哟哟国产精品免费观看| 91色九色蝌蚪| 在线免费观看日本一区| 91美女在线看| 日韩美女在线视频| 国产精品电影一区二区| 丝袜美腿一区二区三区| 黑人精品欧美一区二区蜜桃| 99re这里只有精品视频首页| 欧美一级日韩一级| 亚洲一区在线观看免费 | 99精品国产视频| 国产欧美精品一区aⅴ影院 | 狠狠色丁香婷婷综合久久片| 国产成人精品在线看| 在线观看亚洲精品| 国产欧美日韩激情| 国产欧美一区二区精品性色| 久久蜜臀精品av| 日本美女一区二区| 欧洲另类一二三四区| 国产精品久久三| jizzjizzjizz欧美| 久久久99精品免费观看| 久久精品国产亚洲高清剧情介绍| 91论坛在线播放| 亚洲三级电影网站| 91麻豆国产福利在线观看| 国产精品无人区| 成人av中文字幕| 亚洲精品国产a久久久久久| 国产成a人亚洲| 国产精品无圣光一区二区| 国产美女av一区二区三区| 日韩免费电影网站| 国产91综合一区在线观看| 国产亚洲精品7777| 国产成人免费在线观看不卡| 欧美国产成人在线| 一本一道久久a久久精品| 亚洲午夜久久久| 久久伊人蜜桃av一区二区| 国产精品一卡二| 亚洲美女精品一区| 日韩欧美另类在线| av电影天堂一区二区在线观看| 国产精品久久久久aaaa樱花 | 一区二区三区日韩欧美精品| 91国模大尺度私拍在线视频| 天堂久久久久va久久久久| 日韩免费在线观看| 色综合久久综合中文综合网| 日本美女一区二区| 亚洲免费电影在线| 中文av一区特黄| 久久影院午夜论| 日韩三级av在线播放| 成人黄色在线网站| 日韩主播视频在线| 首页综合国产亚洲丝袜| 日韩avvvv在线播放| 精品影院一区二区久久久| 国模少妇一区二区三区| 成人一区二区三区| 成人一道本在线| 欧美久久久久免费| 国产亚洲综合av| 亚洲综合免费观看高清完整版在线| 亚洲不卡一区二区三区| 精品影院一区二区久久久| www.99精品| 日韩欧美一区二区三区在线| 91免费在线看| 亚洲男人的天堂在线观看| 国产精品三级久久久久三级| 久久久电影一区二区三区| 久久久久国产精品厨房| 精品99一区二区| 国产精品国模大尺度视频| 亚洲男人的天堂在线aⅴ视频| 一级中文字幕一区二区| 午夜精品免费在线| 奇米色一区二区三区四区| 国产综合一区二区| 成人的网站免费观看| 一本色道亚洲精品aⅴ| 欧美成人a∨高清免费观看| 国产精品视频一二三区| 夜夜精品视频一区二区| 丝袜亚洲另类丝袜在线| 蜜臀久久久久久久| 成人avav影音| 欧美不卡视频一区| 一区二区三区精密机械公司| 三级精品在线观看| 成人av网站大全| 国产亚洲一区字幕|