X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=sharedrabundvector.cpp;h=7bc333bc02e737f7caab1f4b4d34ec0c131dc2dd;hb=4a760c2d164aa955dee7d3d38da323822763d906;hp=3901650cef965dc7a3c0126ecb54a8fb425e434d;hpb=feb0fbef36b8a681efc04e9b5e3efb1647b99021;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(){