]> git.donarmstrong.com Git - mothur.git/blobdiff - bootstrap.cpp
fixes while testing 1.33.0
[mothur.git] / bootstrap.cpp
index 2cba2fe08274827a5852116a43dc0994289285f6..ce261cead89a50335536e1c165dca793f668ea04 100644 (file)
@@ -16,8 +16,8 @@ EstOutput Bootstrap::getValues(SAbundVector* rank){
                //vector<double> bootData(3,0);
                data.resize(1,0);
                double maxRank = (double)rank->getMaxRank();
-               int sampled = rank->getNumSeqs();
-               int sobs = rank->getNumBins();
+               double sampled = rank->getNumSeqs();
+               double sobs = rank->getNumBins();
 
                double boot = (double)sobs;
 
@@ -32,13 +32,9 @@ EstOutput Bootstrap::getValues(SAbundVector* rank){
                return data;
        }
        catch(exception& e) {
-               cout << "Standard Error: " << e.what() << " has occurred in the Bootstrap class Function getValues. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
+               m->errorOut(e, "Bootstrap", "getValues");
                exit(1);
        }
-       catch(...) {
-               cout << "An unknown error has occurred in the Bootstrap class function getValues. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
-               exit(1);
-       }       
 }
 
 /***********************************************************************/