File: wilcox.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 (31 lines) | stat: -rwxr-xr-x 609 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
//
//  wilcox.h
//  Mothur
//
//  Created by SarahsWork on 8/6/13.
//  Copyright (c) 2013 Schloss Lab. All rights reserved.
//

#ifndef Mothur_wilcox_h
#define Mothur_wilcox_h

#include "mothurout.h"
#include "utils.hpp"

class PWilcox {
    public:
    PWilcox() { mout = MothurOut::getInstance();}
    ~PWilcox() { }
    
    double pwilcox(double q, double m, double n, bool lower_tail);
    
    private:
    
    MothurOut* mout;
    int allocated_m, allocated_n;
    double gammln(const double xx);
    double choose(double n, double k);
    double cwilcox(int k, int m, int n, double*** w);
};

#endif