Ignore:
Timestamp:
Feb 23, 2006, 9:46:13 AM (16 years ago)
Author:
Peter
Message:

added function to add InputRanker? to ConsensusInputRanker?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/classifier/ConsensusInputRanker.h

    r482 r522  
    2121 
    2222  public:
     23    ///
     24    /// @brief Default constructor
     25    ///
     26    ConsensusInputRanker(void);
     27   
    2328    ///
    2429    /// Constructor
     30    /// @todo doc
     31    ConsensusInputRanker(CrossSplitter&, statistics::Score&);
     32   
    2533    ///
    26     ConsensusInputRanker(CrossSplitter&, statistics::Score&);
    27 
     34    /// @brief add an InputRanker
     35    ///
     36    /// @note update() must be called to make the added InputRanker to
     37    /// influence consensus ids and ranks. If a sequence of
     38    /// InputRankers are added, update() need to be called only after
     39    /// the last InputRanker is added.
     40    ///
     41    inline void add(const InputRanker& ir) { input_rankers_.push_back(ir); }
     42   
    2843    ///
    2944    /// Row with lowest rank (highest score) is ranked as number zero
    3045    /// @return index of row ranked as number \a i
    3146    ///
    32     inline size_t id(const size_t i) const {return id_[i];}
     47    inline size_t id(const size_t i) const { return id_[i]; }
    3348   
    3449    ///
    35     /// Row with lowest rank (highest score) is ranked as number zero
    36     /// @return rank for row \a i
     50    /// Row with lowest rank (highest score) is ranked as number zero
     51    /// @return rank for row \a i
    3752    ///
    38     inline size_t rank(const size_t i) const {return rank_[i];}
     53    inline size_t rank(const size_t i) const { return rank_[i]; }
     54   
     55    ///
     56    /// update ids and ranks
     57    ///
     58    void update(void);
    3959
    4060
    4161  private:
     62
    4263    std::vector<size_t> id_;
    4364    std::vector<InputRanker> input_rankers_;
    4465    std::vector<size_t> rank_;
     66
    4567  };
    4668
Note: See TracChangeset for help on using the changeset viewer.