]> git.donarmstrong.com Git - mothur.git/blob - trialswap2.h
re-wrote co-occurrence command
[mothur.git] / trialswap2.h
1 #ifndef TRIALSWAP2
2 #define TRIALSWAP2
3
4 /*
5  *  trialswap2.h
6  *  Mothur
7  *
8  *  Created by Kathryn Iverson on June 27, 2011.
9  *  Copyright 2011 Schloss Lab. All rights reserved.
10  *
11  */
12
13 #include "mothurout.h"
14
15
16 class TrialSwap2 {
17     
18 public:
19         TrialSwap2(){  m = MothurOut::getInstance(); };
20     ~TrialSwap2(){};
21     
22     double calc_pvalue_lessthan (vector<double>, double);
23     double calc_pvalue_greaterthan (vector<double>, double);
24     int swap_checkerboards (vector<vector<int> > &);
25     int calc_combo (vector<vector<int> > &);
26     double calc_vratio (int, int, vector<int>, vector<int>);
27     int calc_checker (vector<vector<int> > &, vector<int>, int, int);
28     double calc_c_score (vector<vector<int> > &, vector<int>, int, int);
29
30     
31 private:
32     MothurOut* m;
33     
34     double t_test (double, int, double, vector<double>);
35     int print_matrix(vector<vector<int> > &, int, int);
36     
37     
38
39 };
40
41 #endif
42
43