/***********************************************************************/
-SingleLinkage::SingleLinkage(RAbundVector* rav, ListVector* lv, SparseMatrix* dm) :
-Cluster(rav, lv, dm)
+SingleLinkage::SingleLinkage(RAbundVector* rav, ListVector* lv, SparseMatrix* dm, float c, string s) :
+Cluster(rav, lv, dm, c, s)
{}
/***********************************************************************/
//This function clusters based on the single linkage method.
-void SingleLinkage::update(){
+void SingleLinkage::update(double& cutOFF){
try {
getRowColCells();
clusterBins();
clusterNames();
// remove also the cell with the smallest distance
+
removeCell(rowCells[rowInd], -1 , -1);
}
catch(exception& e) {
- errorOut(e, "SingleLinkage", "update");
+ m->errorOut(e, "SingleLinkage", "update");
exit(1);
}
}
return(changed);
}
catch(exception& e) {
- errorOut(e, "SingleLinkage", "updateDistance");
+ m->errorOut(e, "SingleLinkage", "updateDistance");
exit(1);
}
}