openModeller
Version 1.4.0
|
00001 00029 #ifndef _AREASTATS_ 00030 #define _AREASTATS_ 00031 00032 #include <openmodeller/om_defs.hh> 00033 #include <openmodeller/Configuration.hh> 00034 00035 /* Class AreaStats counts several cell statistics collected during 00036 * output map generation. 00037 */ 00038 class dllexp AreaStats 00039 { 00040 public: 00041 00047 AreaStats(Scalar predictionThreshold = 0.5); 00048 00053 AreaStats(const AreaStats *areaStats); 00054 00058 ~AreaStats(); 00059 00066 void reset(Scalar predictionThreshold = 0.5); 00067 00072 void addPrediction(Scalar predictionValue); 00073 00077 void addNonPrediction(); 00078 00082 int getTotalArea() const { return _areaTotal; } 00083 00087 int getAreaPredictedPresent() const { return _areaPredPresent; } 00088 00092 int getAreaPredictedAbsent() const { return _areaPredAbsent; } 00093 00097 int getAreaNotPredicted() const { return _areaNotPredicted; } 00098 00102 Scalar getPredictionThreshold() const { return _predictionThreshold; } 00103 00107 ConfigurationPtr getConfiguration() const; 00108 00109 private: 00110 int _areaTotal; 00111 int _areaPredPresent; 00112 int _areaPredAbsent; 00113 int _areaNotPredicted; 00114 00115 Scalar _predictionThreshold; 00116 }; 00117 #endif