bpp-core3
3.0.0
Main Page
Related Pages
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
c
d
e
f
h
i
o
r
s
t
v
+
Functions
c
d
e
f
h
i
o
r
s
t
Typedefs
+
Classes
Class List
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
e
i
m
n
Enumerations
Enumerator
Related Functions
+
Files
File List
+
File Members
All
Functions
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
StatTools.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: The Bio++ Development Group
2
//
3
// SPDX-License-Identifier: CECILL-2.1
4
5
#ifndef BPP_NUMERIC_STAT_STATTOOLS_H
6
#define BPP_NUMERIC_STAT_STATTOOLS_H
7
8
9
// From the STL:
10
#include <vector>
11
#include <cstddef>
12
13
namespace
bpp
14
{
18
class
StatTools
19
{
20
private
:
21
struct
PValue_
22
{
23
double
pvalue_
;
24
size_t
index_
;
25
PValue_
(
double
pvalue,
size_t
index) :
26
pvalue_(pvalue),
27
index_(index) {}
28
29
bool
operator<
(
const
PValue_
& pvalue)
const
30
{
31
return
pvalue.
pvalue_
<
pvalue_
;
32
}
33
};
34
35
public
:
52
static
std::vector<double>
computeFdr
(
const
std::vector<double>& pvalues);
53
};
54
}
// end of namespace bpp.
55
#endif // BPP_NUMERIC_STAT_STATTOOLS_H
bpp::StatTools::PValue_::pvalue_
double pvalue_
Definition:
StatTools.h:23
bpp
Definition:
ApplicationTools.h:22
bpp::StatTools
Statistics tools and utilitary functions.
Definition:
StatTools.h:18
bpp::StatTools::PValue_::index_
size_t index_
Definition:
StatTools.h:24
bpp::StatTools::PValue_::PValue_
PValue_(double pvalue, size_t index)
Definition:
StatTools.h:25
bpp::StatTools::PValue_::operator<
bool operator<(const PValue_ &pvalue) const
Definition:
StatTools.h:29
bpp::StatTools::computeFdr
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' me...
Definition:
StatTools.cpp:13
bpp::StatTools::PValue_
Definition:
StatTools.h:21
Bpp
Numeric
Stat
StatTools.h
Generated on Wed Jul 3 2024 10:53:56 for bpp-core3 by
1.8.13