comparison phase2/treeLinkFeatures.m @ 25:2a77dd12582f

add in passing of featureNames
author DaveM
date Wed, 08 Mar 2017 18:07:10 +0000
parents 8613ec5ab369
children f9fceb869865
comparison
equal deleted inserted replaced
24:8613ec5ab369 25:2a77dd12582f
1 function [linkList, featureList]= treeLinkFeatures(data, depthThresh) 1 function [linkList, featureList]= treeLinkFeatures(data, depthThresh, featureNames)
2 %% linkList = treeLinkFeatures(data) 2 %% linkList = treeLinkFeatures(data)
3 % given a dataset, a hierarchical cluster of the data is produced, and then 3 % given a dataset, a hierarchical cluster of the data is produced, and then
4 % the data is traversed, such that, for each split in the data, a set of 4 % the data is traversed, such that, for each split in the data, a set of
5 % features are produced, which are the ranked features that can be used to 5 % features are produced, which are the ranked features that can be used to
6 % separate the given dataset at that point. 6 % separate the given dataset at that point.
7 7
8 8
9 9 if(nargin < 3)
10 featureNames = 1:size(data,2);
11 end
10 if(nargin < 2) 12 if(nargin < 2)
11 depthThresh = 999; 13 depthThresh = 999;
12 end 14 end
13 linkList = aglomCluster(data); 15 linkList = aglomCluster(data);
14 linkList = depthCheck(linkList); 16 linkList = depthCheck(linkList);