X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=hcluster.h;h=d8598867a7bf247509a7736203a5ef505ce70f9e;hp=da7769d8813e656cd5e63fc3ec15b10c210e062b;hb=df7e3ff9f68ef157b0328a2d353c3258c5d45d89;hpb=ee4dd201fa4f2c4ede5b2e525c82cce0a37de363 diff --git a/hcluster.h b/hcluster.h index da7769d..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,8 +38,8 @@ protected: void updateMap(); vector getSeqsFNNN(); vector getSeqsAN(); - void combineFile(); - void processFile(); + int combineFile(); + int processFile(); //seqDist getNextDist(char*, int&, int); RAbundVector* rabund; @@ -78,6 +68,7 @@ protected: vector mergedMin; string partialDist; + MothurOut* m; };