]> git.donarmstrong.com Git - mothur.git/blob - trialswap2.h
changes while testing
[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> > &, int, int);
25     int calc_combo (int, int, 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     double get_zscore (double, double, double);
30     double getSD (int, vector<double>, double);
31     
32     
33 private:
34     MothurOut* m;
35     
36     double t_test (double, int, double, vector<double>);
37     int print_matrix(vector<vector<int> > &, int, int);
38     
39     
40         
41 };
42 #endif
43
44