// -*- mode: c++; indent-tabs-mode: nil; -*- // // Copyright 2009 Illumina, Inc. // // This software is covered by the "Illumina Genome Analyzer Software // License Agreement" and the "Illumina Source Code License Agreement", // and certain third party copyright/licenses, and any user of this // source file is bound by the terms therein (see accompanying files // Illumina_Genome_Analyzer_Software_License_Agreement.pdf and // Illumina_Source_Code_License_Agreement.pdf and third party // copyright/license notices). // // /// \file /// \author Chris Saunders /// #ifndef __BINOMIAL_TEST_HH #define __BINOMIAL_TEST_HH bool is_reject_binomial_p_exact(const double alpha, const double p, const unsigned n_success, const unsigned n_failure); bool is_reject_binomial_p_chi_sqr(const double alpha, const double p, const unsigned n_success, const unsigned n_failure); /// \brief test to reject a binomial with p='p' at FPR<='alpha' /// /// chooses the testing method to strike a reasonable compromise /// between efficiency and accuracy /// bool is_reject_binomial_p(const double alpha, const double p, const unsigned n_success, const unsigned n_failure); #endif