src/math/FishersExact.cpp
raw| 1 | #include <pbcopper/math/FishersExact.h> |
| 2 | |
| 3 | #include <pbcopper/third-party/htslib/kfunc.h> |
| 4 | |
| 5 | namespace PacBio { |
| 6 | namespace Math { |
| 7 | |
| 8 | double FishersExact(int n11, int n12, int n21, int n22) |
| 9 | { |
| 10 | double left = 0.0; |
| 11 | double right = 0.0; |
| 12 | double two = 0.0; |
| 13 | return kt_fisher_exact(n11, n12, n21, n22, &left, &right, &two); |
| 14 | } |
| 15 | |
| 16 | } // namespace Math |
| 17 | } // namespace PacBio |