File: trialswap2.h

package info (click to toggle)
mothur 1.48.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 13,684 kB
  • sloc: cpp: 161,854; makefile: 122; sh: 31
file content (46 lines) | stat: -rwxr-xr-x 1,077 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#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"
#include "utils.hpp"


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);
    double get_zscore (double, double, double);
    double getSD (int, vector<double>, double);
    
    
private:
    MothurOut* m;
    Utils util;
    
    double t_test (double, int, double, vector<double>);
    int print_matrix(vector<vector<int> > &, int, int);
    
    
        
};
#endif