]> git.donarmstrong.com Git - mothur.git/blobdiff - wilcox.h
changed name of get.metacommunity to get.communitytype. fixed bug in metastats comman...
[mothur.git] / wilcox.h
diff --git a/wilcox.h b/wilcox.h
new file mode 100644 (file)
index 0000000..dc96ef7
--- /dev/null
+++ b/wilcox.h
@@ -0,0 +1,30 @@
+//
+//  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"
+
+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