]> git.donarmstrong.com Git - mothur.git/blobdiff - speciesprofile.cpp
moved mothur's source into a folder to make grabbing just the source easier on github
[mothur.git] / speciesprofile.cpp
diff --git a/speciesprofile.cpp b/speciesprofile.cpp
deleted file mode 100644 (file)
index c225a8a..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- *  speciesprofile.cpp
- *  Mothur
- *
- *  Created by westcott on 12/15/10.
- *  Copyright 2010 Schloss Lab. All rights reserved.
- *
- */
-
-#include "speciesprofile.h"
-
-/***********************************************************************/
-EstOutput SpeciesProfile::getValues(vector<SharedRAbundVector*> shared) {
-       try {
-               data.resize(1,0);
-               
-               double sumA = 0.0;
-               double sumB = 0.0;
-               
-               for (int i = 0; i < shared[0]->getNumBins(); i++) { 
-                       sumA += shared[0]->getAbundance(i);
-                       sumB += shared[1]->getAbundance(i);
-               }
-               
-               double sum = 0.0;
-               for (int i = 0; i < shared[0]->getNumBins(); i++) { 
-                       int A = shared[0]->getAbundance(i);
-                       int B = shared[1]->getAbundance(i);
-                       
-                       sum += (((A / sumA) - (B / sumB)) * ((A / sumA) - (B / sumB)));
-               }
-               
-               data[0] = sqrt(sum);
-               
-               if (isnan(data[0]) || isinf(data[0])) { data[0] = 0; }
-               
-               return data;
-       }
-       catch(exception& e) {
-               m->errorOut(e, "SpeciesProfile", "getValues");
-               exit(1);
-       }
-}
-/***********************************************************************/
-