changeset 25:2a77dd12582f

add in passing of featureNames
author DaveM
date Wed, 08 Mar 2017 18:07:10 +0000
parents 8613ec5ab369
children 3e9de361fc58
files phase2/treeLinkFeatures.m
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/phase2/treeLinkFeatures.m	Wed Mar 08 16:56:59 2017 +0000
+++ b/phase2/treeLinkFeatures.m	Wed Mar 08 18:07:10 2017 +0000
@@ -1,4 +1,4 @@
-function [linkList, featureList]= treeLinkFeatures(data, depthThresh)
+function [linkList, featureList]= treeLinkFeatures(data, depthThresh, featureNames)
 %% linkList = treeLinkFeatures(data)
 % given a dataset, a hierarchical cluster of the data is produced, and then
 % the data is traversed, such that, for each split in the data, a set of
@@ -6,7 +6,9 @@
 % separate the given dataset at that point.
 
 
-
+if(nargin < 3)
+    featureNames = 1:size(data,2);
+end
 if(nargin < 2)
     depthThresh = 999;
 end