X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bstick.cpp;h=9c36cd9d37c86d624e4ee43023287a4cf7a7cbd0;hb=a537fefa3bd2c2eba7d532249375b6a11b295e25;hp=d064ebe107e5fbc90fa10015572e60c11f9e5f45;hpb=74844a60d80c6dd06e3fb02ee9b928424f9019b0;p=mothur.git diff --git a/bstick.cpp b/bstick.cpp index d064ebe..9c36cd9 100644 --- a/bstick.cpp +++ b/bstick.cpp @@ -18,7 +18,7 @@ double BStick::invSum(int index, double numSpec) sum += 1/(double)i; return sum; } - +/***********************************************************************/ RAbundVector BStick::getRAbundVector(SAbundVector* rank){ vector rData; int mr = 1; @@ -26,7 +26,7 @@ RAbundVector BStick::getRAbundVector(SAbundVector* rank){ int ns = 0; for(int i = rank->size()-1; i > 0; i--) { - int cur = rank->get(i); + double cur = rank->get(i); if(mr == 1 && cur > 0) mr = i; nb += cur;