comparison phase2/treeLinkFeatures.m @ 23:30db29d5cf5c

fixing the bug which stopped treeLinkFeatures from working
author DaveM
date Wed, 08 Mar 2017 13:17:07 +0000
parents e3a1a7d38a3a
children 8613ec5ab369
comparison
equal deleted inserted replaced
22:e3a1a7d38a3a 23:30db29d5cf5c
23 if(currentRow(1) > listSize) 23 if(currentRow(1) > listSize)
24 row = currentRow(1) - listSize; 24 row = currentRow(1) - listSize;
25 % rD = linkList(row,4); 25 % rD = linkList(row,4);
26 if(linkList(row,4) < depthThresh) 26 if(linkList(row,4) < depthThresh)
27 classList = traceLinkageToBinary(linkList, row); 27 classList = traceLinkageToBinary(linkList, row);
28 featureList{row,1} = rfFeatureSelection(data(classList>0,:), data(classList>0)); 28 featureList{row,1} = rfFeatureSelection(data(classList>0,:), classList(classList>0));
29 featureList{row,2} = linkList(row,4); 29 featureList{row,2} = linkList(row,4);
30 end 30 end
31 currentRow = [currentRow; linkList(row,1); linkList(row,2)]; 31 currentRow = [currentRow; linkList(row,1); linkList(row,2)];
32 end 32 end
33 currentRow = currentRow(2:end); 33 currentRow = currentRow(2:end);