Changeset 102 for trunk/src/ROC.h


Ignore:
Timestamp:
Jun 15, 2004, 11:40:52 AM (19 years ago)
Author:
Peter
Message:

Fixed bug in interface between InputRanker? & ROC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ROC.h

    r98 r102  
    2626  public:
    2727    ///
     28    /// Default constructor
     29    ///
     30    ROC(void);
     31         
     32    ///
    2833    /// Constructor taking a value vector and a target vector (+1 or -1).
    2934    ///
     
    3843    /// between zero and one.  @return the area under the ROC curve
    3944    ///
    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&);
    4153       
    4254    ///
     
    5163    /// @return the one-sided p-value
    5264    ///
    53     double p_value();
     65    double p_value() ;
    5466         
    5567    ///
     
    6072
    6173  private:
    62     std::vector<std::pair<int, double> > value_;
     74    std::vector<std::pair<int, double> > value_; //sorted pair of id and value
    6375    double nof_pos_;
    6476    u_int minimum_size_;
     
    6981    /// @return the p-value
    7082    ///
    71     double ROC::get_p_approx(const double);
     83    double ROC::get_p_approx(const double) const;
    7284   
    7385    ///
Note: See TracChangeset for help on using the changeset viewer.