Changeset 102 for trunk/src/ROC.h
- Timestamp:
- Jun 15, 2004, 11:40:52 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ROC.h
r98 r102 26 26 public: 27 27 /// 28 /// Default constructor 29 /// 30 ROC(void); 31 32 /// 28 33 /// Constructor taking a value vector and a target vector (+1 or -1). 29 34 /// … … 38 43 /// between zero and one. @return the area under the ROC curve 39 44 /// 40 double score(); 45 double score() ; 46 47 /// Function taking a vector of values and a vector of target (+1 48 /// or -1). The score is equivalent to the Mann-Whitney score but 49 /// normalized to be between zero and one. @return the area under 50 /// the ROC curve 51 /// 52 double score(const gslapi::vector&, const gslapi::vector&); 41 53 42 54 /// … … 51 63 /// @return the one-sided p-value 52 64 /// 53 double p_value() ;65 double p_value() ; 54 66 55 67 /// … … 60 72 61 73 private: 62 std::vector<std::pair<int, double> > value_; 74 std::vector<std::pair<int, double> > value_; //sorted pair of id and value 63 75 double nof_pos_; 64 76 u_int minimum_size_; … … 69 81 /// @return the p-value 70 82 /// 71 double ROC::get_p_approx(const double) ;83 double ROC::get_p_approx(const double) const; 72 84 73 85 ///
Note: See TracChangeset
for help on using the changeset viewer.