Libshuff::Libshuff(FullMatrix* D, int it, float step, float co) : matrix(D), iters(it), stepSize(step), cutOff(co){
try{
+ m = MothurOut::getInstance();
groupNames = matrix->getGroups();
groupSizes = matrix->getSizes();
numGroups = matrix->getNumGroups();
initializeGroups(matrix);
}
catch(exception& e) {
- errorOut(e, "Libshuff", "Libshuff");
+ m->errorOut(e, "Libshuff", "Libshuff");
exit(1);
}
}
}
}
catch(exception& e) {
- errorOut(e, "Libshuff", "initializeGroups");
+ m->errorOut(e, "Libshuff", "initializeGroups");
exit(1);
}
}
return minX;
}
catch(exception& e) {
- errorOut(e, "Libshuff", "getMinX");
+ m->errorOut(e, "Libshuff", "getMinX");
exit(1);
}
}
return minXY;
}
catch(exception& e) {
- errorOut(e, "Libshuff", "getMinXY");
+ m->errorOut(e, "Libshuff", "getMinXY");
exit(1);
}
}
for(int k=0;k<groupSizes[y];k++) { groups[y][k]=v[index++]; }
}
catch(exception& e) {
- errorOut(e, "Libshuff", "randomizeGroups");
+ m->errorOut(e, "Libshuff", "randomizeGroups");
exit(1);
}
}