return data.rend();
}
+/***********************************************************************/
+void RAbundVector::nonSortedPrint(ostream& output){
+ try {
+ output << label << '\t' << numBins << '\t';
+
+ for(int i=0;i<numBins;i++){ output << data[i] << '\t'; }
+ output << endl;
+ }
+ catch(exception& e) {
+ errorOut(e, "RAbundVector", "nonSortedPrint");
+ exit(1);
+ }
+}
/***********************************************************************/
void RAbundVector::print(string prefix, ostream& output){
try {
}
}
+
/***********************************************************************/
void RAbundVector::print(ostream& output){
try {
OrderVector RAbundVector::getOrderVector(map<string,int>* nameMap = NULL) {
try {
OrderVector ov;
-
+
for(int i=0;i<data.size();i++){
for(int j=0;j<data[i];j++){
ov.push_back(i);
}
}
random_shuffle(ov.begin(), ov.end());
-
ov.setLabel(label);
+ ov.getNumBins();
+
return ov;
}
catch(exception& e) {