X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=npshannon.cpp;h=a855b316964da97dd261f33ee094f014a4ed7b05;hp=fda649cda2ecd9b6d4c00e4baab3c0f052bd80ad;hb=df7e3ff9f68ef157b0328a2d353c3258c5d45d89;hpb=510b1cfc25cd79391d6973ca20c5ec25fb1bb3b2 diff --git a/npshannon.cpp b/npshannon.cpp index fda649c..a855b31 100644 --- a/npshannon.cpp +++ b/npshannon.cpp @@ -18,7 +18,7 @@ EstOutput NPShannon::getValues(SAbundVector* rank){ float npShannon = 0.0000; double maxRank = (double)rank->getMaxRank(); - int sampled = rank->getNumSeqs(); + double sampled = rank->getNumSeqs(); double Chat = 1.0000 - (double)rank->get(1)/(double)sampled; @@ -43,7 +43,7 @@ EstOutput NPShannon::getValues(SAbundVector* rank){ return data; } catch(exception& e) { - errorOut(e, "NPShannon", "getValues"); + m->errorOut(e, "NPShannon", "getValues"); exit(1); } }