comparison phase2/treeLinkFeatures.m @ 9:699c769b76da

initial implementation of treeLinkFeatures, to be tested
author DaveM
date Fri, 10 Feb 2017 09:03:05 +0000
parents
children 686d1f9b8698
comparison
equal deleted inserted replaced
8:b177d57ac0bd 9:699c769b76da
1 function linkList = treeLinkFeatures(data)
2
3 linkList = aglomCluster(data);
4
5 linkList(:,4) = 0;
6 listSize = size(data,1);
7 currentRow = [size(linkList,1)];
8
9
10 while (linkList(currentRow(1),1) > listSize && linkList(currentRow(1),2) > listSize)
11 classList = traceLinkageToBinary(linkList, currentRow);
12 linkList(:,4) = rfFeatureSelection(data(classList>0,:), classList(classList>0));
13 currentRow = [currentRow(2:end); currentRow(1),1; currentRow(1),2];
14 end
15
16 end