X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=cluster.hpp;h=6d7fc470e91eca8dae548ffb5594a4099a203f35;hb=2397df97b12cd5d21ea10dc4248c18a5803ddd41;hp=685c843c0199b73083f7eb3a17693b33fe1a4d36;hpb=9c23307c583d4e8595f75278c13e708788f2f058;p=mothur.git diff --git a/cluster.hpp b/cluster.hpp index 685c843..6d7fc47 100644 --- a/cluster.hpp +++ b/cluster.hpp @@ -13,7 +13,7 @@ typedef vector MatVec; class Cluster { public: - Cluster(RAbundVector*, ListVector*, SparseMatrix*, float); + Cluster(RAbundVector*, ListVector*, SparseMatrix*, float, string); virtual void update(double&); virtual string getTag() = 0; virtual void setMapWanted(bool m); @@ -39,6 +39,7 @@ protected: bool mapWanted; float cutoff; map seq2Bin; + string method; vector seqVec; // contains vectors of cells related to a certain sequence MatVec rowCells; @@ -51,7 +52,7 @@ protected: class CompleteLinkage : public Cluster { public: - CompleteLinkage(RAbundVector*, ListVector*, SparseMatrix*, float); + CompleteLinkage(RAbundVector*, ListVector*, SparseMatrix*, float, string); bool updateDistance(MatData& colCell, MatData& rowCell); string getTag(); @@ -63,7 +64,7 @@ private: class SingleLinkage : public Cluster { public: - SingleLinkage(RAbundVector*, ListVector*, SparseMatrix*, float); + SingleLinkage(RAbundVector*, ListVector*, SparseMatrix*, float, string); void update(); bool updateDistance(MatData& colCell, MatData& rowCell); string getTag(); @@ -76,7 +77,7 @@ private: class AverageLinkage : public Cluster { public: - AverageLinkage(RAbundVector*, ListVector*, SparseMatrix*, float); + AverageLinkage(RAbundVector*, ListVector*, SparseMatrix*, float, string); bool updateDistance(MatData& colCell, MatData& rowCell); string getTag();