bpp-core3
3.0.0
|
Statistics tools and utilitary functions. More...
#include <Bpp/Numeric/Stat/StatTools.h>
Classes | |
struct | PValue_ |
Static Public Member Functions | |
static std::vector< double > | computeFdr (const std::vector< double > &pvalues) |
Compute the false discovery rate for a set of input p-values, using Benjamini and Hochberg's 'FDR' method. More... | |
Statistics tools and utilitary functions.
Definition at line 18 of file StatTools.h.
|
static |
Compute the false discovery rate for a set of input p-values, using Benjamini and Hochberg's 'FDR' method.
The false discovery rate is computed by sorting all pvalues. The FDR r is calculated with the formula where p is the p-value, n is the number of tests (the size of the input vector) and i is the rank of the p-value, that is the index in the sorted array.
References:
pvalues | The input p-values. |
Definition at line 13 of file StatTools.cpp.
Referenced by bpp::StatTools::PValue_::operator<().