X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=hcluster.h;h=d8598867a7bf247509a7736203a5ef505ce70f9e;hp=bff432892144bfc0caa3f52f9cdd2691a605e72a;hb=df7e3ff9f68ef157b0328a2d353c3258c5d45d89;hpb=832d53a9dfac6b1795735eec643d8cf627b0d8e3 diff --git a/hcluster.h b/hcluster.h index bff4328..d859886 100644 --- a/hcluster.h +++ b/hcluster.h @@ -17,23 +17,13 @@ class RAbundVector; class ListVector; -/***********************************************************************/ -struct linkNode { - int links; - float dist; - - linkNode() {}; - linkNode(int l, float a) : links(l), dist(a) {}; - ~linkNode() {}; -}; - /***********************************************************************/ class HCluster { public: HCluster(RAbundVector*, ListVector*, string, string, NameAssignment*, float); ~HCluster(){}; - bool update(int, int, float); + double update(int, int, float); void setMapWanted(bool m); map getSeqtoBin() { return seq2Bin; } vector getSeqs(); @@ -48,9 +38,9 @@ protected: void updateMap(); vector getSeqsFNNN(); vector getSeqsAN(); - void combineFile(); - void processFile(); - seqDist getNextDist(char*, int&, int); + int combineFile(); + int processFile(); + //seqDist getNextDist(char*, int&, int); RAbundVector* rabund; ListVector* list; @@ -78,6 +68,7 @@ protected: vector mergedMin; string partialDist; + MothurOut* m; };