class Cluster {
public:
- Cluster(RAbundVector*, ListVector*, SparseMatrix*);
+ Cluster(RAbundVector*, ListVector*, SparseMatrix*, float);
virtual void update();
virtual string getTag() = 0;
virtual void setMapWanted(bool m);
int smallCol;
float smallDist;
bool mapWanted;
+ float cutoff;
map<string, int> seq2Bin;
vector<MatVec> seqVec; // contains vectors of cells related to a certain sequence
class CompleteLinkage : public Cluster {
public:
- CompleteLinkage(RAbundVector*, ListVector*, SparseMatrix*);
+ CompleteLinkage(RAbundVector*, ListVector*, SparseMatrix*, float);
bool updateDistance(MatData& colCell, MatData& rowCell);
string getTag();
class SingleLinkage : public Cluster {
public:
- SingleLinkage(RAbundVector*, ListVector*, SparseMatrix*);
+ SingleLinkage(RAbundVector*, ListVector*, SparseMatrix*, float);
void update();
bool updateDistance(MatData& colCell, MatData& rowCell);
string getTag();
class AverageLinkage : public Cluster {
public:
- AverageLinkage(RAbundVector*, ListVector*, SparseMatrix*);
+ AverageLinkage(RAbundVector*, ListVector*, SparseMatrix*, float);
bool updateDistance(MatData& colCell, MatData& rowCell);
string getTag();