8 void BHCorrection(std::vector <double> &pvalues,
double qValue)
10 std::vector < std::pair <unsigned int, double> > indexedPvalues;
11 unsigned int numData = pvalues.size();
12 for (
unsigned int i = 0;i < numData;++i)
13 indexedPvalues.push_back(std::pair <unsigned int, double> (i,pvalues[i]));
18 unsigned int breakingIndex = 0;
19 for (
unsigned int i = 0;i < numData;++i)
21 if (indexedPvalues[i].second > qValue * (i + 1) / numData)
29 for (
unsigned int i = 0;i < numData;++i)
30 pvalues[indexedPvalues[i].first] = (i < breakingIndex);
35 std::vector < std::pair <unsigned int, double> > indexedPvalues;
36 unsigned int numData = pvalues.size();
40 for (
unsigned int i = 0;i < numData;++i)
42 indexedPvalues.push_back(std::pair <unsigned int, double> (i,pvalues[i]));
43 byFactor += 1.0 / (i + 1.0);
49 unsigned int breakingIndex = 0;
50 for (
unsigned int i = 0;i < numData;++i)
52 if (indexedPvalues[i].second > qValue * (i + 1) / numData / byFactor)
60 for (
unsigned int i = 0;i < numData;++i)
61 pvalues[indexedPvalues[i].first] = (i < breakingIndex);
void BHCorrection(std::vector< double > &pvalues, double qValue)
void BYCorrection(std::vector< double > &pvalues, double qValue)