*/
#include "rarefact.h"
-#include "ordervector.hpp"
+//#include "ordervector.hpp"
/***********************************************************************/
for(int i=0;i<displays.size();i++){
displays[i]->reset();
}
+
+ delete lookup;
+ delete rank;
}
for(int i=0;i<displays.size();i++){
displays[i]->close();
}
+ delete rcd;
}
catch(exception& e) {
cout << "Standard Error: " << e.what() << " has occurred in the Rarefact class Function getCurve. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
//randomize the groups
random_shuffle(lookup.begin(), lookup.end());
-
+
+ vector<SharedRAbundVector*> subset;
//send each group one at a time
for (int k = 0; k < lookup.size(); k++) {
- rcd->updateSharedData(lookup[0], lookup[k], k+1, numGroupComb);
+ subset.clear(); //clears out old pair of sharedrabunds
+ //add in new pair of sharedrabunds
+ subset.push_back(lookup[0]); subset.push_back(lookup[k]);
+
+ rcd->updateSharedData(subset, k+1, numGroupComb);
mergeVectors(lookup[0], lookup[k]);
}
for(int i=0;i<displays.size();i++){
displays[i]->reset();
}
+
+ for (int i = 0; i < lookup.size(); i++) {
+ delete lookup[i];
+ }
}
for(int i=0;i<displays.size();i++){
displays[i]->close();
}
-
+
+ delete rcd;
}
catch(exception& e) {
cout << "Standard Error: " << e.what() << " has occurred in the Rarefact class Function getSharedCurve. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";