EstOutput SharedSobsCS::getValues(vector<SharedRAbundVector*> shared){
try {
data.resize(1,0);
- int observed = 0;
+ double observed = 0;
int numGroups = shared.size();
- for (int i = 0; i < shared[0]->size(); i++) {
+ for (int i = 0; i < shared[0]->getNumBins(); i++) {
//get bin values and set sharedByAll
bool sharedByAll = true;
for (int j = 0; j < numGroups; j++) {
return data;
}
catch(exception& e) {
- errorOut(e, "SharedSobsCS", "getValues");
+ m->errorOut(e, "SharedSobsCS", "getValues");
exit(1);
}
}