Changeset 990 for trunk/yat/classifier


Ignore:
Timestamp:
Nov 14, 2007, 5:08:48 PM (16 years ago)
Author:
Peter
Message:

removing const when returning by value.

Location:
trunk/yat/classifier
Files:
2 edited

Legend:

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

    r865 r990  
    177177  }
    178178
    179   const size_t Target::size(const std::string& label) const
     179  size_t Target::size(const std::string& label) const
    180180  {
    181181    std::map<std::string,size_t>::const_iterator i=class_map_.find(label);   
     
    191191  }
    192192
    193   const size_t Target::size(size_t cl) const
     193  size_t Target::size(size_t cl) const
    194194  {
    195195    return std::count(classes_.begin(),classes_.end(),cl);
  • trunk/yat/classifier/Target.h

    r865 r990  
    136136    /// @return number of samples with label @a label
    137137    ///
    138     const size_t size(const std::string& label) const;
     138    size_t size(const std::string& label) const;
    139139
    140140    ///
    141141    /// @return number of samples with class @a cl
    142142    ///
    143     const size_t size(size_t cl) const;
     143    size_t size(size_t cl) const;
    144144
    145145
Note: See TracChangeset for help on using the changeset viewer.