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
|