X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sharedrabundvector.cpp;h=7bc333bc02e737f7caab1f4b4d34ec0c131dc2dd;hb=1a968f34ae2d2680eaf189a197d1a21b8dfd6c03;hp=3901650cef965dc7a3c0126ecb54a8fb425e434d;hpb=4884e09a6f1f67f9a57aafcef82e248a1c633956;p=mothur.git diff --git a/sharedrabundvector.cpp b/sharedrabundvector.cpp index 3901650..7bc333b 100644 --- a/sharedrabundvector.cpp +++ b/sharedrabundvector.cpp @@ -211,6 +211,18 @@ int SharedRAbundVector::getAbundance(int index){ return data[index].abundance; } +/***********************************************************************/ +//returns vector of abundances +vector SharedRAbundVector::getAbundances(){ + vector abunds; + for (int i = 0; i < data.size(); i++) { + abunds.push_back(data[i].abundance); + } + + return abunds; +} + + /***********************************************************************/ int SharedRAbundVector::numNZ(){