6 #include "sparsematrix.hpp"
12 typedef list<PCell>::iterator MatData;
17 Cluster(RAbundVector*, ListVector*, SparseMatrix*);
18 virtual void update() = 0;
21 void getRowColCells();
22 virtual void clusterBins();
23 virtual void clusterNames();
27 SparseMatrix* dMatrix;
32 vector<MatData> rowCells;
33 vector<MatData> colCells;
38 /***********************************************************************/
40 class CompleteLinkage : public Cluster {
42 CompleteLinkage(RAbundVector*, ListVector*, SparseMatrix*);
49 /***********************************************************************/
51 class SingleLinkage : public Cluster {
53 SingleLinkage(RAbundVector*, ListVector*, SparseMatrix*);
60 /***********************************************************************/
62 class AverageLinkage : public Cluster {
64 AverageLinkage(RAbundVector*, ListVector*, SparseMatrix*);
71 /***********************************************************************/