]> git.donarmstrong.com Git - mothur.git/blobdiff - solow.cpp
changing command name classify.shared to classifyrf.shared
[mothur.git] / solow.cpp
index 8c3d155add993c93a33719686baf3911641acde3..33f3afbc2336699b07b4ff5ff97200f8e940b530 100644 (file)
--- a/solow.cpp
+++ b/solow.cpp
@@ -3,7 +3,7 @@
  *  Mothur
  *
  *  Created by Thomas Ryabin on 5/13/09.
- *  Copyright 2009 __MyCompanyName__. All rights reserved.
+ *  Copyright 2009Schloss Lab UMASS Amherst. All rights reserved.
  *
  */
 
@@ -21,19 +21,15 @@ EstOutput Solow::getValues(SAbundVector* rank){
                double f1 = (double)rank->get(1);
                double f2 = (double)rank->get(2);
 
-               data[0] = f1*f1/2/f2 * (1 - pow(1 - 2*f2/n/f1, m));
+               data[0] = f1*f1/2/f2 * (1 - pow(1 - 2*f2/n/f1, f));
                
                return data;
        }
        catch(exception& e) {
-               cout << "Standard Error: " << e.what() << " has occurred in the Coverage class Function getValues. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
+               m->errorOut(e, "Solow", "getValues");
                exit(1);
        }
-       catch(...) {
-               cout << "An unknown error has occurred in the Coverage class function getValues. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
-               exit(1);
-       }       
-};
+}
 
 
 /***********************************************************************/