]> git.donarmstrong.com Git - mothur.git/blobdiff - ace.cpp
created mothurOut class to handle logfiles
[mothur.git] / ace.cpp
diff --git a/ace.cpp b/ace.cpp
index 064779467d92c14a514f9ad10c4fd714763401ed..1fde5118d2bbda9db313c83d5a87a2fec9d3a1ff 100644 (file)
--- a/ace.cpp
+++ b/ace.cpp
@@ -14,7 +14,6 @@
 EstOutput Ace::getValues(SAbundVector* rank) {
        try {
                data.resize(3,0);
-       //      vector<double> aceData(3,0);
                double ace, acelci, acehci;
        
                int nrare = 0;
@@ -43,7 +42,7 @@ EstOutput Ace::getValues(SAbundVector* rank) {
        
                if(denom <= 0.0){       term1=0.0000;   } else {        term1 = (double)(srare * numsum)/(double)denom - 1.0;   }
                if(term1 >= 0.0){       gamace = term1; } else {        gamace = 0.0;                                                                                   }
-
+               
                if(gamace >= 0.64){
                        gamace = gamace * (1 + (nrare * (1 - Cace) * numsum) / denom);
                        if(gamace<0){                   gamace = 0;                     }
@@ -141,13 +140,9 @@ EstOutput Ace::getValues(SAbundVector* rank) {
                return data;
        }
        catch(exception& e) {
-               cout << "Standard Error: " << e.what() << " has occurred in the Ace class Function getValues. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
+               m->errorOut(e, "Ace", "getValues");
                exit(1);
        }
-       catch(...) {
-               cout << "An unknown error has occurred in the Ace class function getValues. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
-               exit(1);
-       }       
 }
 
 /***********************************************************************/