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
4d4899b1
Commit
4d4899b1
authored
20 years ago
by
marwan
Browse files
Options
Downloads
Patches
Plain Diff
bug in order patterns RP fixed (empty order patterns)
parent
a005798d
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
crqa.m
+8
-3
8 additions, 3 deletions
crqa.m
with
8 additions
and
3 deletions
crqa.m
+
8
−
3
View file @
4d4899b1
...
@@ -135,6 +135,9 @@ function xout=crqa(varargin)
...
@@ -135,6 +135,9 @@ function xout=crqa(varargin)
% $Revision$
% $Revision$
%
%
% $Log$
% $Log$
% Revision 5.8 2004/11/15 12:56:01 marwan
% bug fix in method checking
%
% Revision 5.7 2004/11/15 12:53:27 marwan
% Revision 5.7 2004/11/15 12:53:27 marwan
% covariance plot commented out
% covariance plot commented out
%
%
...
@@ -809,6 +812,8 @@ case 'compute'
...
@@ -809,6 +812,8 @@ case 'compute'
if
Nx
==
w
&
wstep
<
2
,
wstep
=
1
;
Nx
=
w
+
1
;
end
if
Nx
==
w
&
wstep
<
2
,
wstep
=
1
;
Nx
=
w
+
1
;
end
if
Nx
==
w
,
Nx
=
w
+
1
;
end
if
Nx
==
w
,
Nx
=
w
+
1
;
end
if
nogui
~=
2
,
hw
=
waitbar
(
0
,[
'0/'
,
num2str
(
Nx
-
w
)]);
set
(
hw
,
'Name'
,
'Please Wait!'
);
h1
=
get
(
hw
,
'chil'
);
h1
=
get
(
h1
,
'title'
);
drawnow
;
end
if
nogui
~=
2
,
hw
=
waitbar
(
0
,[
'0/'
,
num2str
(
Nx
-
w
)]);
set
(
hw
,
'Name'
,
'Please Wait!'
);
h1
=
get
(
hw
,
'chil'
);
h1
=
get
(
h1
,
'title'
);
drawnow
;
end
if
strcmpi
(
method
,
'Order Pattern'
)
method
=
'op'
;
end
if
strcmpi
(
method
,
'Order Matrx'
)
method
=
'om'
;
end
for
i
=
1
:
wstep
:
Nx
-
w
;
for
i
=
1
:
wstep
:
Nx
-
w
;
if
~
nogui
if
~
nogui
...
@@ -819,13 +824,13 @@ for i=1:wstep:Nx-w;
...
@@ -819,13 +824,13 @@ for i=1:wstep:Nx-w;
break
break
end
end
end
end
try
try
% X=crp_big(x(i:i+w-1,:),y(i:i+w-1,:),m,t,e,'fan','silent');
% X=crp_big(x(i:i+w-1,:),y(i:i+w-1,:),m,t,e,'fan','silent');
if
embed_flag
if
0
%
embed_flag
X
=
crp_big
(
x
(
i
:
i
+
w
-
1
,:),
y
(
i
:
i
+
w
-
1
,:),
m
,
t
,
e
,
method
,
'silent'
,
check_norm
{
nonorm
+
1
});
X
=
crp_big
(
x
(
i
:
i
+
w
-
1
,:),
y
(
i
:
i
+
w
-
1
,:),
m
,
t
,
e
,
method
,
'silent'
,
check_norm
{
nonorm
+
1
});
else
else
% X=crp2(x(i:i+w-1,:),y(i:i+w-1,:),m,t,e,method,varargin{i_char},'silent');
X
=
crp2
(
x
(
i
:
i
+
w
-
1
,:),
y
(
i
:
i
+
w
-
1
,:),
m
,
t
,
e
,
method
,
'silent'
,
varargin
{
i_char
});
X
=
crp2
(
x
(
i
:
i
+
w
-
1
,:),
y
(
i
:
i
+
w
-
1
,:),
m
,
t
,
e
,
method
,
check_norm
{
nonorm
+
1
},
'silent'
);
end
end
% X=crp(x(i:i+w-1,:),y(i:i+w-1,:),m,t,e,varargin{i_char},'silent');
% X=crp(x(i:i+w-1,:),y(i:i+w-1,:),m,t,e,varargin{i_char},'silent');
x_var
=
var
(
x
(
i
:
i
+
w
-
1
,:));
y_var
=
var
(
y
(
i
:
i
+
w
-
1
,:));
temp
=
cov
(
x
(
i
:
i
+
w
-
1
,:),
y
(
i
:
i
+
w
-
1
,:));
xy_var
=
temp
(
1
,
2
);
x_var
=
var
(
x
(
i
:
i
+
w
-
1
,:));
y_var
=
var
(
y
(
i
:
i
+
w
-
1
,:));
temp
=
cov
(
x
(
i
:
i
+
w
-
1
,:),
y
(
i
:
i
+
w
-
1
,:));
xy_var
=
temp
(
1
,
2
);
...
...
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