X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bstick.cpp;fp=bstick.cpp;h=9c36cd9d37c86d624e4ee43023287a4cf7a7cbd0;hb=e4c80376cc4533f66c8dfc18f3e1a86a60ac17fe;hp=d064ebe107e5fbc90fa10015572e60c11f9e5f45;hpb=8f7164a88df624fd0a8d1eddbb3d744463cc9ecb;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;