Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CRP Toolbox for MATLAB
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Norbert Marwan
CRP Toolbox for MATLAB
Commits
70a3f0c4
Commit
70a3f0c4
authored
14 years ago
by
marwan
Browse files
Options
Downloads
Patches
Plain Diff
debugging line removed
parent
8bada275
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mi.m
+15
-9
15 additions, 9 deletions
mi.m
with
15 additions
and
9 deletions
mi.m
+
15
−
9
View file @
70a3f0c4
...
...
@@ -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
3
9
.6429
120.0000
30.0714
],
...
'MenuBar'
,
'Figure'
,
...
'Position'
,[
69.5000
3
6
.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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment