40 #define ROC_DEFAULT_RESOLUTION 15
41 #define ROC_DEFAULT_BACKGROUND_POINTS 10000
75 void initialize(
int resolution,
int num_background_points );
86 void initialize(
int resolution,
bool use_absences_as_background );
115 double getX(
int point_index )
const {
return _data[point_index][0]; }
123 double getY(
int point_index )
const {
return _data[point_index][1]; }
129 double getTotalArea();
139 double getPartialAreaRatio(
double e=1.0 );
144 bool ready()
const {
return _ready; }
158 bool operator () (
const std::vector<Scalar> &a,
const std::vector<Scalar> &b )
const {
160 if ( a[0] != b[0] ) {
176 void _loadPredictions(
const Model& model,
const SamplerPtr& sampler );
181 void _calculateGraphPoints();
186 bool _calculateTotalArea();
191 std::vector< std::vector<Scalar> >
_data;
std::vector< Scalar > _thresholds
std::vector< std::vector< Scalar > > _data
std::vector< Scalar > _proportions
int _num_background_points
std::vector< Scalar > _prediction
double getX(int point_index) const
bool _use_absences_as_background
#define ROC_DEFAULT_RESOLUTION
double getY(int point_index) const
std::map< double, double > _ratios
std::vector< int > _category