Ignore:
Timestamp:
Dec 22, 2006, 1:10:54 AM (15 years ago)
Author:
Jari Häkkinen
Message:

Addresses #170..

File:
1 edited

Legend:

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

    r706 r714  
    8080    /// @return a map with label as key and class as value.
    8181    ///
    82     inline const std::map<std::string,size_t>& classes(void) const
    83     { return class_map_; }
     82    const std::map<std::string,size_t>& classes(void) const;
    8483   
    8584    ///
     
    8887    /// @return number of classes
    8988    ///
    90     inline const size_t nof_classes(void) const { return classes().size(); }
     89    const size_t nof_classes(void) const;
    9190
    9291    ///
     
    9897    /// @see set_binary
    9998    ///
    100     inline bool binary(const size_t i) const { return binary_[operator()(i)]; }
     99    bool binary(size_t i) const;
    101100   
    102101    ///
    103102    /// @return vector of labels for classes
    104103    ///
    105     inline const std::vector<std::string>& labels() { return labels_; }
     104    const std::vector<std::string>& labels(void);
    106105
    107106    ///
     
    110109    /// 0 which is set to true.
    111110    ///
    112     inline void set_binary(const size_t i, const bool b) { binary_[i]=b; }
     111    void set_binary(size_t i, bool b);
    113112
    114113    ///
     
    123122    /// @return number of samples
    124123    ///
    125     inline size_t size(void) const { return classes_.size(); }
     124    size_t size(void) const;
    126125
    127126    ///
     
    139138    /// @return the class of @a sample
    140139    ///
    141     inline size_t operator()(const size_t sample) const
    142     { return classes_[sample]; }
     140    size_t operator()(size_t sample) const;
    143141   
    144142    ///
    145143    /// @return the class of @a sample
    146144    ///
    147     inline size_t operator[](const size_t sample) const
    148     { return this->operator()(sample); }
     145    size_t operator[](size_t sample) const;
    149146
    150147    ///
Note: See TracChangeset for help on using the changeset viewer.