Ignore:
Timestamp:
Sep 7, 2007, 9:39:30 PM (14 years ago)
Author:
Peter
Message:

fixes #149 - Target constructor from Target and vector<string>

File:
1 edited

Legend:

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

    r831 r860  
    5252    explicit Target(const std::vector<std::string>& labels);
    5353
     54    /**
     55       @brief Constructor
     56    */
     57    Target(const std::vector<std::string>& labels, const Target&);
     58
    5459    ///
    5560    /// @brief istream constructor.
     
    5762    Target(std::istream&, char sep='\0')
    5863      throw (utility::IO_error,std::exception);
    59 
    60     ///
    61     /// @brief Copy Constructor
    62     ///
    63     //Target(const Target& other)
    64     //  : classes_(other.classes_), class_map_(other.class_map_),
    65     //    labels_(other.labels_) {}
    6664
    6765    ///
     
    8482    const std::map<std::string,size_t>& classes(void) const;
    8583   
    86     ///
    87     /// This function is equivalent to Target::classes().size()
    88     ///
    89     /// @return number of classes
    90     ///
     84    /**
     85       This function is equivalent to Target::classes().size()
     86       
     87       \return number of classes
     88       
     89       \note there might be empty classes, i.e., classes with zero
     90       samples. This may happen when using
     91       Target(const std::vector<std::string>& labels, const Target&) or
     92       Target(const Target& org, const std::vector<size_t>& vec).
     93    */
    9194    const size_t nof_classes(void) const;
    9295
     
    157160
    158161  private:
     162    /// @brief Copy Constructor
     163    // using compiler generated constructor
     164    //Target(const Target& other);
     165
    159166    // binary target for class i
    160167    std::vector<char> binary_; // avoid using vector<bool>
Note: See TracChangeset for help on using the changeset viewer.