Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run mdcrqa.m using required input arguments only #1

Merged
merged 1 commit into from
Feb 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions mdcrqa.m
Original file line number Diff line number Diff line change
Expand Up @@ -138,21 +138,22 @@
error('No appropriate norm parameter specified.');
end
else
NORM == 'euc';
NORM = 'euc';
end

if exist('RAD') % check whether RAD has been specified - if not, set arbitarily RAD = 1
else
RAD=1;
end

if exist('ZSCORE') % check whether ZSCORE has been specified - if not, don't zscore
if exist('ZSCORE','var') % check whether ZSCORE has been specified - if not, don't zscore
if ZSCORE == 0
else
TS1 = zscore(TS1);
TS2 = zscore(TS2);
end
else
ZSCORE = 0;
end

DIM = size(TS1); % compute dimensionality of input signals
Expand All @@ -172,6 +173,13 @@
else
end

if ~exist('DLINE','var')
DLINE = 2;
end
if ~exist('VLINE','var')
VLINE = 2;
end

PARAMETERS={DIM,EMB,DEL,NORM,RAD,DLINE,VLINE,ZSCORE}; % store parameters

a=pdist2(TS1,TS2); % create distance matrix and cross-recurrence matirx
Expand Down