# HG changeset patch # User DaveM # Date 1488996430 0 # Node ID 2a77dd12582f972e978129b9d6971246d5453b5e # Parent 8613ec5ab369c660a9dbf48e0529a6063064b937 add in passing of featureNames diff -r 8613ec5ab369 -r 2a77dd12582f phase2/treeLinkFeatures.m --- 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