mHG.statistic.calc: Calculate the minimum-hypergeometric (mHG) statistic.
Description
Calculates the minimum-hypergeometric (mHG) statistic.
mHG definition: \(mHG(\lambda)=min_{1<=n<N} HGT(b_n(\lambda))\)
Where HGT is the hypergeometric tail: \(HGT(b;N,B,n)=Probability(X>=b)\),
and \(b_n=\sum\limits_{i=1}^n \lambda_i\).
the algorithm will only consider the first \(n_{max}\) partitions.
Value
Instance of the class mHG.statistic.info (stores the statistics, and for which n and \(b_n\) it was obtained).
If several n give the same mHG, the smallest one is chosen.
Details
\(O(n_{max}+B^2*log(B))\) running time, \(O(B)\) space.
References
Eden, E. (2007). Discovering Motifs in Ranked Lists of DNA Sequences. Haifa.
Retrieved from http://bioinfo.cs.technion.ac.il/people/zohar/thesis/eran.pdf
(pages 10-11, 18-19)