diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/phase2/treeLinkFeatures.m	Fri Feb 10 09:03:05 2017 +0000
@@ -0,0 +1,16 @@
+function linkList = treeLinkFeatures(data)
+
+linkList = aglomCluster(data);
+
+linkList(:,4) = 0;
+listSize = size(data,1);
+currentRow = [size(linkList,1)];
+
+
+while (linkList(currentRow(1),1) > listSize && linkList(currentRow(1),2) > listSize)
+    classList = traceLinkageToBinary(linkList, currentRow);
+    linkList(:,4) = rfFeatureSelection(data(classList>0,:), classList(classList>0));
+    currentRow = [currentRow(2:end); currentRow(1),1; currentRow(1),2];
+end
+
+end
\ No newline at end of file