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
915e086a
Commit
915e086a
authored
16 years ago
by
marwan
Browse files
Options
Downloads
Patches
Plain Diff
bug fix for logical data vectors
parent
d950ce51
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
crp_big.m
+21
-17
21 additions, 17 deletions
crp_big.m
with
21 additions
and
17 deletions
crp_big.m
+
21
−
17
View file @
915e086a
...
...
@@ -68,7 +68,7 @@ function xout=crp_big(varargin)
% b(end+1:end+100) = 100:-1:1;
% crp_big(b,1,1,.1,'max')
%
% See also CRP, CRP2, JRP and CRQA.
% See also CRP, CRP2, JRP
, TAUCRP
and CRQA.
% Copyright (c) 1998-2007 by AMRON
% Norbert Marwan, Potsdam University, Germany
...
...
@@ -78,6 +78,9 @@ function xout=crp_big(varargin)
% $Revision$
%
% $Log$
% Revision 5.11 2007/07/18 17:18:44 marwan
% integer values in the arguments supported
%
% Revision 5.10 2007/05/15 17:33:13 marwan
% new neighbourhood criterion: fixed RR
%
...
...
@@ -162,24 +165,25 @@ check_meth={'ma','eu','mi','nr','rr','fa','in','om','op','di'}; % maxnorm, eucl
check_norm
=
{
'non'
,
'nor'
};
% nonormalize, normalize
check_gui
=
{
'gui'
,
'nog'
,
'sil'
};
% gui, nogui, silent
if
isnumeric
(
varargin
{
1
})
==
1
% read commandline input
varargin
{
9
}
=
[];
% transform any int to double
intclasses
=
{
'uint8'
;
'uint16'
;
'uint32'
;
'uint64'
;
'int8'
;
'int16'
;
'int32'
;
'int64'
};
flagClass
=
[];
for
i
=
1
:
length
(
intclasses
)
i_int
=
find
(
cellfun
(
'isclass'
,
varargin
,
intclasses
{
i
}));
if
~
isempty
(
i_int
)
for
j
=
1
:
length
(
i_int
)
varargin
{
i_int
(
j
)}
=
double
(
varargin
{
i_int
(
j
)});
end
flagClass
=
[
flagClass
;
i_int
(:)];
% transform any int to double
intclasses
=
{
'uint8'
;
'uint16'
;
'uint32'
;
'uint64'
;
'int8'
;
'int16'
;
'int32'
;
'int64'
;
'logical'
};
flagClass
=
[];
for
i
=
1
:
length
(
intclasses
)
i_int
=
find
(
cellfun
(
'isclass'
,
varargin
,
intclasses
{
i
}));
if
~
isempty
(
i_int
)
for
j
=
1
:
length
(
i_int
)
varargin
{
i_int
(
j
)}
=
double
(
varargin
{
i_int
(
j
)});
end
flagClass
=
[
flagClass
;
i_int
(:)];
end
if
~
isempty
(
flagClass
)
disp
([
'Warning: Input arguments at position ['
,
num2str
(
flagClass
'),'
]
contain
integer
values
'
]);
disp
([
'(now converted to double).'
])
end
end
if
~
isempty
(
flagClass
)
disp
([
'Warning: Input arguments at position ['
,
num2str
(
flagClass
'),'
]
contain
integer
values
'
]);
disp
([
'(now converted to double).'
])
end
if
isnumeric
(
varargin
{
1
})
==
1
% read commandline input
varargin
{
9
}
=
[];
i_double
=
find
(
cellfun
(
'isclass'
,
varargin
,
'double'
));
i_char
=
find
(
cellfun
(
'isclass'
,
varargin
,
'char'
));
...
...
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