annotate phase2/testparseData.m @ 13:b398be42561d

analysing test data, making sense of the treeLinkFeature output and identifying large number of results with features 1 2 3 4 5
author DaveM
date Fri, 10 Feb 2017 18:13:29 +0000
parents
children b95cee067fdd
rev   line source
DaveM@13 1 % An attempt to make sense of the treeLinkFeatures output data in a
DaveM@13 2 % meaningful way, and to understand why so man
DaveM@13 3
DaveM@13 4 tl = []
DaveM@13 5 for i = 1:length(featureList)
DaveM@13 6 t = zeros(5,1);
DaveM@13 7 for ii = 1:5
DaveM@13 8 t(ii) = (featureList{i}(ii) == ii);
DaveM@13 9 end
DaveM@13 10 tl = [tl; (sum(t)==5)];
DaveM@13 11 end
DaveM@13 12
DaveM@13 13 %%
DaveM@13 14 compareList = linkList(find(tl),1:2);
DaveM@13 15
DaveM@13 16 for i = 1:length(compareList)
DaveM@13 17 try
DaveM@13 18 t1 = T(mod(compareList(i,1),length(featureList)+1));
DaveM@13 19 t2 = T(mod(compareList(i,2),length(featureList)+1));
DaveM@13 20 if(t1 == t2)
DaveM@13 21 fprintf('Line %d matches\n',i);
DaveM@13 22 else
DaveM@13 23 fprintf('Line %d FAILS\n', i);
DaveM@13 24 end
DaveM@13 25 catch
DaveM@13 26 %TO CATCH- Attempted to access T(0); index must be a positive integer or logical.
DaveM@13 27 fprintf('Line %d CRASH **************\n',i);
DaveM@13 28
DaveM@13 29 end
DaveM@13 30 %%% THIS DOESNT WORK - Attempted to access T(0); index must be a positive integer or logical.
DaveM@13 31
DaveM@13 32
DaveM@13 33 end