diff phase2/depthCheck.m @ 19:203626c7e0af

commenting depthCheck
author DaveM
date Thu, 16 Feb 2017 11:22:43 +0000
parents 4a8ec6c461a0
children
line wrap: on
line diff
--- a/phase2/depthCheck.m	Thu Feb 16 10:25:48 2017 +0000
+++ b/phase2/depthCheck.m	Thu Feb 16 11:22:43 2017 +0000
@@ -1,4 +1,14 @@
 function linkList = depthCheck(linkList)
+%% linkList = depthCheck(linkList)
+% depthCheck will extend a linkList, created by the linkages algorithm, and
+% append an extra column on the end which indicated the depth of the
+% linkage, so the top level is 1, and each following level is the number of
+% links needed to get to the top level - which could be considered the
+% number of rules that exist. 
+% 
+% The other method for measuring depth would be
+% to look at the value of the linkage distance - thresholding and grouping
+% the linkage distances could be beneficial for some analysis.
 
 listSize = size(linkList,1)+1;
 
@@ -24,25 +34,3 @@
 end
 end
 
-
-
-% linkList = aglomCluster(data);
-% listSize = size(data,1);
-% 
-% % linkList(:,4) = 0;
-% featureList = cell(listSize-1,1);
-% currentRow = [2*listSize-1];
-% 
-% %%
-% while (~isempty(currentRow))
-%     if(currentRow(1) > listSize) 
-%         row = currentRow(1) - listSize
-%         classList = traceLinkageToBinary(linkList, row);
-%         featureList{row} = rfFeatureSelection(data(classList>0,:), classList(classList>0));
-%         currentRow = [currentRow(2:end); linkList(row,1); linkList(row,2)];
-%     else
-%         currentRow = currentRow(2:end);
-%     end
-% end
-% 
-% end
\ No newline at end of file