37 #include <OpenMS/config.h>
64 explicit ROCCurve(
const std::vector<std::pair<double,bool>> & pairs);
91 std::vector<std::pair<double, double> >
curve(
UInt resolution = 10);
119 bool operator()(
const std::pair<double, bool> & a,
const std::pair<double, bool> & b)
121 return b.first < a.first;
predicate for sort()
Definition: ROCCurve.h:116
bool operator()(const std::pair< double, bool > &a, const std::pair< double, bool > &b)
Definition: ROCCurve.h:119
ROCCurves show the trade-off in sensitivity and specificity for binary classifiers using different cu...
Definition: ROCCurve.h:55
void insertPair(double score, bool clas)
insert score, type pair
double AUC()
returns Area Under Curve
ROCCurve()
default constructor
ROCCurve & operator=(const ROCCurve &source)
assignment operator
UInt neg_
Definition: ROCCurve.h:131
std::vector< std::pair< double, double > > curve(UInt resolution=10)
some points in the ROC Curve
void sort()
sorts data and caches if sorted
std::vector< std::pair< double, bool > > score_clas_pairs_
Definition: ROCCurve.h:127
double rocN(Size N)
returns ROC-N score (e.g. ROC-50). Returns -1 if not enough false positives were found
ROCCurve(const ROCCurve &source)
copy constructor
virtual ~ROCCurve()=default
destructor
double trapezoidal_area(double x1, double x2, double y1, double y2)
double cutoffPos(double fraction=0.95)
ROCCurve(const std::vector< std::pair< double, bool >> &pairs)
constructor with value, class pairs
double cutoffNeg(double fraction=0.95)
void count()
counts global pos and neg
bool sorted_
Definition: ROCCurve.h:133
UInt pos_
Definition: ROCCurve.h:129
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47