Skip to content
Snippets Groups Projects
Commit 069f5bf0 authored by marwan's avatar marwan
Browse files

bugfix in estimation black and white vertical lines

parent 99723410
No related branches found
No related tags found
No related merge requests found
...@@ -149,6 +149,10 @@ function xout=crqa(varargin) ...@@ -149,6 +149,10 @@ function xout=crqa(varargin)
% $Revision$ % $Revision$
% %
% $Log$ % $Log$
% Revision 5.46 2013/08/21 09:09:59 marwan
% bugfix for mixed output RTE and T2
% bugfix for recurrence time estimation
%
% Revision 5.45 2012/11/14 13:07:03 marwan % Revision 5.45 2012/11/14 13:07:03 marwan
% bugfix for RTE for very short time series % bugfix for RTE for very short time series
% %
...@@ -1268,7 +1272,7 @@ for i=1:wstep:Nx-w; ...@@ -1268,7 +1272,7 @@ for i=1:wstep:Nx-w;
warning off warning off
errcode=271; errcode=271;
b(b<lmin)=[]; b(b<lmin)=[];
[c d dw]=tt(X); [c d dw]=tt(X_theiler);
hist_v = [hist_v; d]; hist_v = [hist_v; d];
hist_w = [hist_w; dw]; hist_w = [hist_w; dw];
N_hist_v(i) = length(d); N_hist_v(i) = length(d);
......
...@@ -27,6 +27,9 @@ function [a_out, b_out, c_out]=tt(x) ...@@ -27,6 +27,9 @@ function [a_out, b_out, c_out]=tt(x)
% $Revision$ % $Revision$
% %
% $Log$ % $Log$
% Revision 3.7 2010/06/30 12:02:52 marwan
% Help text modified
%
% Revision 3.6 2009/03/24 08:33:47 marwan % Revision 3.6 2009/03/24 08:33:47 marwan
% copyright address changed % copyright address changed
% %
...@@ -85,6 +88,12 @@ try ...@@ -85,6 +88,12 @@ try
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% for white vertical lines % for white vertical lines
% if LOI is not present then put it in!
if ~all(diag(x))
x = x + eye(size(x));
end
for i = 1:size(x,2) for i = 1:size(x,2)
i_ = find(x(:,i)); i_ = find(x(:,i));
i1 = min(i_); i2 = max(i_); i1 = min(i_); i2 = max(i_);
......
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