*
*/
-
-using namespace std;
-
#include "sharedrabundvector.h"
#include "sabundvector.hpp"
#include "ordervector.hpp"
/***********************************************************************/
-SharedRAbundVector::SharedRAbundVector() : DataVector(), maxRank(0), numBins(0), numSeqs(0) {};
+SharedRAbundVector::SharedRAbundVector() : DataVector(), maxRank(0), numBins(0), numSeqs(0) {}
/***********************************************************************/
newGuy.abundance = 0;
data.push_back(newGuy);
}
-};
+}
/***********************************************************************
holdLabel = label;
//add new vector to lookup
- lookup.push_back(new SharedRAbundVector(num));
+ SharedRAbundVector* temp = new SharedRAbundVector();
+ lookup.push_back(temp);
lookup[0]->setLabel(label);
lookup[0]->setGroup(groupN);
}
//add new vector to lookup
- lookup.push_back(new SharedRAbundVector(num));
+ temp = new SharedRAbundVector();
+ lookup.push_back(temp);
lookup[count]->setLabel(label);
lookup[count]->setGroup(groupN);
/***********************************************************************/
-SharedRAbundVector::~SharedRAbundVector() {
-
-}
-
-/***********************************************************************/
-
void SharedRAbundVector::set(int binNumber, int newBinSize, string groupname){
try {
int oldBinSize = data[binNumber].abundance;
random_shuffle(ov.begin(), ov.end());
ov.setLabel(label);
+ ov.updateStats();
+
return ov;
}
catch(exception& e) {