]> git.donarmstrong.com Git - mothur.git/blobdiff - sharednseqs.h
added nseqs and sharednseqs calculators, removed excess tabs in output files.
[mothur.git] / sharednseqs.h
diff --git a/sharednseqs.h b/sharednseqs.h
new file mode 100644 (file)
index 0000000..f2ac5a7
--- /dev/null
@@ -0,0 +1,33 @@
+#ifndef SHAREDNSEQS_H
+#define SHAREDNSEQS_H
+
+/*
+ *  sharednseqs.h
+ *  Mothur
+ *
+ *  Created by Sarah Westcott on 3/16/09.
+ *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
+ *
+ */
+
+
+
+
+#include "calculator.h"
+
+/***********************************************************************/
+class SharedNSeqs : public Calculator {
+
+public:
+       SharedNSeqs() : Calculator("SharedNSeqs", 1) {};
+       EstOutput getValues(SAbundVector* rank){ return data; };
+       EstOutput getValues(SharedRAbundVector* shared1, SharedRAbundVector* shared2) {
+               data.resize(1,0);
+               data[0] = (double)shared1->getNumSeqs() + (double)shared2->getNumSeqs();
+               return data;
+       }
+};
+
+/***********************************************************************/
+
+#endif