]> git.donarmstrong.com Git - mothur.git/blobdiff - sharedsobscollectsummary.cpp
moved mothur's source into a folder to make grabbing just the source easier on github
[mothur.git] / sharedsobscollectsummary.cpp
diff --git a/sharedsobscollectsummary.cpp b/sharedsobscollectsummary.cpp
deleted file mode 100644 (file)
index fffed02..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- *  sharedsobscollectsummary.cpp
- *  Mothur
- *
- *  Created by Sarah Westcott on 2/12/09.
- *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
- *
- */
-
-#include "sharedsobscollectsummary.h"
-
-/***********************************************************************/
-//This returns the number of shared species observed in several groups.  
-//The shared vector is each groups sharedrabundvector.
-
-EstOutput SharedSobsCS::getValues(vector<SharedRAbundVector*> shared){
-       try {
-               data.resize(1,0);
-               double observed = 0;
-               int numGroups = shared.size();
-
-               for (int i = 0; i < shared[0]->getNumBins(); i++) {
-                       //get bin values and set sharedByAll 
-                       bool sharedByAll = true;
-                       for (int j = 0; j < numGroups; j++) {
-                               if (shared[j]->getAbundance(i) == 0) { sharedByAll = false; }
-                       }
-                       
-                       //they are shared
-                       if (sharedByAll == true) {  observed++;  }
-               }
-
-               data[0] = observed;
-               return data;
-       }
-       catch(exception& e) {
-               m->errorOut(e, "SharedSobsCS", "getValues");
-               exit(1);
-       }
-}
-
-/***********************************************************************/