]> git.donarmstrong.com Git - mothur.git/blobdiff - trialswap2.h
Revert to previous commit
[mothur.git] / trialswap2.h
diff --git a/trialswap2.h b/trialswap2.h
new file mode 100644 (file)
index 0000000..924938b
--- /dev/null
@@ -0,0 +1,42 @@
+#ifndef TRIALSWAP2
+#define TRIALSWAP2
+
+/*
+ *  trialswap2.h
+ *  Mothur
+ *
+ *  Created by Kathryn Iverson on June 27, 2011.
+ *  Copyright 2011 Schloss Lab. All rights reserved.
+ *
+ */
+
+#include "mothurout.h"
+
+
+class TrialSwap2 {
+    
+public:
+    TrialSwap2(){ m = MothurOut::getInstance(); };
+    ~TrialSwap2(){};
+    
+    double calc_pvalue_lessthan (vector<double>, double);
+    double calc_pvalue_greaterthan (vector<double>, double);
+    int swap_checkerboards (vector<vector<int> > &, int, int);
+    int calc_combo (int, int, vector<vector<int> > &);
+    double calc_vratio (int, int, vector<int>, vector<int>);
+    int calc_checker (vector<vector<int> > &, vector<int>, int, int);
+    double calc_c_score (vector<vector<int> > &, vector<int>, int, int);
+    
+    
+private:
+    MothurOut* m;
+    
+    double t_test (double, int, double, vector<double>);
+    int print_matrix(vector<vector<int> > &, int, int);
+    
+    
+    
+};
+#endif
+
+