annotate 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
rev   line source
DaveM@9 1 function linkList = treeLinkFeatures(data)
DaveM@9 2
DaveM@9 3 linkList = aglomCluster(data);
DaveM@9 4
DaveM@9 5 linkList(:,4) = 0;
DaveM@9 6 listSize = size(data,1);
DaveM@9 7 currentRow = [size(linkList,1)];
DaveM@9 8
DaveM@9 9
DaveM@9 10 while (linkList(currentRow(1),1) > listSize && linkList(currentRow(1),2) > listSize)
DaveM@9 11 classList = traceLinkageToBinary(linkList, currentRow);
DaveM@9 12 linkList(:,4) = rfFeatureSelection(data(classList>0,:), classList(classList>0));
DaveM@9 13 currentRow = [currentRow(2:end); currentRow(1),1; currentRow(1),2];
DaveM@9 14 end
DaveM@9 15
DaveM@9 16 end