Changeset 938 for trunk/yat/classifier


Ignore:
Timestamp:
Oct 6, 2007, 1:24:05 AM (16 years ago)
Author:
Peter
Message:

improving constness correctness

Location:
trunk/yat/classifier
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/classifier/ConsensusInputRanker.cc

    r865 r938  
    5858  void ConsensusInputRanker::add(const Sampler& sampler,
    5959                                 const MatrixLookup& data,
    60                                  statistics::Score& score)
     60                                 const statistics::Score& score)
    6161  {
    6262    assert(sampler.size());
     
    7575  void ConsensusInputRanker::add(const Sampler& sampler,
    7676                                 const MatrixLookupWeighted& data,
    77                                  statistics::Score& score)
     77                                 const statistics::Score& score)
    7878  {
    7979    assert(id_.empty() || id_.size()==data.rows());
  • trunk/yat/classifier/ConsensusInputRanker.h

    r865 r938  
    8585    /// the median rank (i.e. update() is called).
    8686    ///
    87     void add(const Sampler& sampler, const MatrixLookup&, statistics::Score& s);
     87    void add(const Sampler& sampler, const MatrixLookup&,
     88             const statistics::Score& s);
    8889   
    8990    ///
     
    9697    ///
    9798    void add(const Sampler& sampler, const MatrixLookupWeighted& data,
    98              statistics::Score& score);
     99             const statistics::Score& score);
    99100   
    100101    ///
  • trunk/yat/classifier/InputRanker.cc

    r865 r938  
    4747  InputRanker::InputRanker(const MatrixLookup& data,
    4848                           const Target& target,
    49                            statistics::Score& score_object)
     49                           const statistics::Score& score_object)
    5050  {
    5151    assert(data.columns()==target.size());
     
    7575  InputRanker::InputRanker(const MatrixLookupWeighted& data,
    7676                           const Target& target,
    77                            statistics::Score& score_object)
     77                           const statistics::Score& score_object)
    7878  {
    7979    assert(data.columns()==target.size());
  • trunk/yat/classifier/InputRanker.h

    r929 r938  
    5454    /// use all samples)
    5555    ///
    56     InputRanker(const MatrixLookup&, const Target&, statistics::Score&);
     56    InputRanker(const MatrixLookup&, const Target&, const statistics::Score&);
    5757
    5858    ///
     
    6262    ///
    6363    InputRanker(const MatrixLookupWeighted&, const Target&,
    64                 statistics::Score&);
     64                const statistics::Score&);
    6565
    6666    ///
Note: See TracChangeset for help on using the changeset viewer.