X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=sharedrabundfloatvector.cpp;h=71c868b158ab41c2b8d72e7dac301998e2c39537;hp=fa32fc43a873d22482cfcb8e4172343f3516cbce;hb=df7e3ff9f68ef157b0328a2d353c3258c5d45d89;hpb=a9dbc22713bfc056a797361dd757b1a5c98e1c01 diff --git a/sharedrabundfloatvector.cpp b/sharedrabundfloatvector.cpp index fa32fc4..71c868b 100644 --- a/sharedrabundfloatvector.cpp +++ b/sharedrabundfloatvector.cpp @@ -191,6 +191,16 @@ float SharedRAbundFloatVector::getAbundance(int index){ return data[index].abundance; } /***********************************************************************/ +//returns vector of abundances +vector SharedRAbundFloatVector::getAbundances(){ + vector abunds; + for (int i = 0; i < data.size(); i++) { + abunds.push_back(data[i].abundance); + } + + return abunds; +} +/***********************************************************************/ individualFloat SharedRAbundFloatVector::get(int index){ return data[index]; }