]> git.donarmstrong.com Git - mothur.git/blobdiff - fisher2.h
working on megastats
[mothur.git] / fisher2.h
index cba59662da9b67ec072fd5f4840a17cf16d36d0e..905a1a00c69108ca18a81a01f7d34cc40a6f46d3 100644 (file)
--- a/fisher2.h
+++ b/fisher2.h
@@ -1,9 +1,29 @@
-//#ifndef GUARD_fisher2
-//#define GUARD_fisher2
+#ifndef GUARD_fisher2
+#define GUARD_fisher2
 
-void fexact(int *nrow, int *ncol, double *table, int *ldtabl,
-       double *expect, double *percnt, double *emin, double *prt,
-       double *pre, /* new in C : */ int *workspace);
+#include <stdlib.h>
+#include <stdio.h> 
+#include <math.h>
+#include <limits.h> 
 
-//#endif GUARD_fisher2
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define SINT_MAX INT_MAX
+
+#define        max(a, b)               ((a) < (b) ? (b) : (a))
+#define        min(a, b)               ((a) > (b) ? (b) : (a))
+
+
+void fexact(int *, int *, double *, int *,
+       double *, double *, double *, double *,
+       double *, int *);
+          
+#ifdef __cplusplus        
+}
+#endif
+
+#endif