]> git.donarmstrong.com Git - mothur.git/blobdiff - npshannon.cpp
changed random forest output filename
[mothur.git] / npshannon.cpp
index fda649cda2ecd9b6d4c00e4baab3c0f052bd80ad..a855b316964da97dd261f33ee094f014a4ed7b05 100644 (file)
@@ -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);
        }
 }