]> git.donarmstrong.com Git - mothur.git/blobdiff - solow.cpp
changing command name classify.shared to classifyrf.shared
[mothur.git] / solow.cpp
index d29b9c9a7967d8683a1199609e06bae123cec632..33f3afbc2336699b07b4ff5ff97200f8e940b530 100644 (file)
--- a/solow.cpp
+++ b/solow.cpp
@@ -21,12 +21,12 @@ 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) {
-               errorOut(e, "Solow", "getValues");
+               m->errorOut(e, "Solow", "getValues");
                exit(1);
        }
 }