Skip to content
Snippets Groups Projects
Commit 70a3f0c4 authored by marwan's avatar marwan
Browse files

debugging line removed

parent 8bada275
No related branches found
No related tags found
No related merge requests found
......@@ -60,6 +60,9 @@ function varargout=mi(varargin)
% $Revision$
%
% $Log$
% Revision 3.14 2009/03/24 08:32:57 marwan
% copyright address changed
%
% Revision 3.13 2007/12/20 16:26:06 marwan
% changed gpl splash behaviour
%
......@@ -207,13 +210,13 @@ case 'init'
h8=figure(props.window,... % Plot Figure
'Tag','MI_Fig',...
'MenuBar','Figure',...
'Position',[69.5000 39.6429 120.0000 30.0714],...
'MenuBar','Figure',...
'Position',[69.5000 36.6429 120.0000 30.0714],...
'PaperType','a4',...
'PaperPosition',[0.25 0.25 7.7677 11.193],...
'PaperOrientation','portrait',...
'UserData',x,...
'Name','Mutual Information');
'PaperPosition',[0.25 0.25 7.7677 11.193],...
'PaperOrientation','portrait',...
'UserData',x,...
'Name','Mutual Information');
set(0,'showhidden','on')
h=findobj('Label','&Help','Type','uimenu');
......@@ -236,7 +239,7 @@ case 'init'
set(h,props.logo,'Tag','axes_logo')
h=uicontrol(props.text,...
'Tag','text_logo',...
'String','Uni Potsdam',...
'String','Uni Potsdam',...
'Position',[97 24.2143 22 3.5714]);
h2=textwrap(h,{[char(169),' AGNLD'],'University of Potsdam','2002-2006'});
set(h,'String',h2)
......@@ -436,11 +439,14 @@ case 'compute'
for l=1:m;
P2=hist2(x{k},x{l},nbin,t,'silent'); % 2D distribution
mP=length(size(P2));
if sum(~P2(:))/numel(P2) > 0.99
%disp(['k: ',num2str(k),' l: ',num2str(l),' test: ',num2str(sum(~P2(:))/numel(P2))])
if sum(~P2(:))/numel(P2) > 0.9995
warning on
warning('Too less data points for the estimation of the joint distribution.');
MI(k,l,(t:lag)+1)=NaN;
MI_sigma(k,l,(t:lag)+1)=NaN;
%MI(k,l,(t)+1)=NaN;
%MI_sigma(k,l,(t)+1)=NaN;
if ~nogui,
h=findobj('tag','button_apply');
set(h(1),'ToolTip','Starts the computation.','String','Apply','Callback','mi compute')
......@@ -565,7 +571,7 @@ case 'plot_mi'
clear out_str
if m==2;
for k=1:length(MI)
out_str(k)={sprintf(repmat('%8.3f %6.3f ',1,2*length(MI)),reshape([MI(k,:);MI_sigma(k,:)],1,2*length(MI)))};
out_str(k)={sprintf(repmat(['%8.3f ',char(177),'%6.3f '],1,2*length(MI)),reshape([MI(k,:);MI_sigma(k,:)],1,2*length(MI)))};
end
else
for k=1:length(MI)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment