diff --git a/docs/content/tools/fisher.rst b/docs/content/tools/fisher.rst index 239328dd9112e051569dd6cfac74f4f24453088f..aa771c07821cad0144acaa06628d4a7211d1843f 100644 --- a/docs/content/tools/fisher.rst +++ b/docs/content/tools/fisher.rst @@ -48,7 +48,7 @@ can do this with ``fisher`` as: #_________________________________________ # p-values for fisher's exact test left right two-tail ratio - 1.00000 0.00001 0.00001 31.667 + 1 1.3466e-05 1.3466e-05 31.667 Where we can see the constructed contingency table and the pvalues for left, right diff --git a/src/fisher/Fisher.cpp b/src/fisher/Fisher.cpp index 874da58b193c129dac4f4789898f488e36ef1867..3789c495dd5285a00e0a308d13608a5bb9132847 100644 --- a/src/fisher/Fisher.cpp +++ b/src/fisher/Fisher.cpp @@ -56,11 +56,9 @@ bool Fisher::calculate() { printf("# p-values for fisher's exact test\n"); printf("left\tright\ttwo-tail\tratio\n"); - printf("%.5f\t%.5f\t%.5f\t%.3f\n", left, right, two, ratio); + printf("%.5g\t%.5g\t%.5g\t%.3f\n", left, right, two, ratio); - //kt_fisher_exact(50010000, 10000000, 15000000, 3000000, &left, &right, &two); - - return true; + return true; } bool Fisher::getFisher() {