Ignore:
Timestamp:
Mar 4, 2021, 7:50:00 AM (9 months ago)
Author:
Peter
Message:

remove white-space

File:
1 edited

Legend:

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

    r3855 r4050  
    1 #ifndef _theplu_yat_classifier_target_ 
    2 #define _theplu_yat_classifier_target_ 
     1#ifndef _theplu_yat_classifier_target_
     2#define _theplu_yat_classifier_target_
    33
    44// $Id$
     
    4040    class Index;
    4141  }
    42 namespace classifier { 
     42namespace classifier {
    4343
    4444  ///
     
    4747  class Target
    4848  {
    49  
     49
    5050  public:
    5151    /**
     
    6060
    6161    /**
    62        @brief Constructor 
     62       @brief Constructor
    6363    */
    6464    Target(const std::vector<std::string>& labels, const Target&);
     
    8787    ///
    8888    const std::map<std::string,size_t>& classes(void) const;
    89    
     89
    9090    /**
    9191       This function is equivalent to Target::classes().size()
    92        
     92
    9393       \return number of classes
    94        
     94
    9595       \note there might be empty classes, i.e., classes with zero
    96        samples. This may happen when using 
     96       samples. This may happen when using
    9797       Target(const std::vector<std::string>& labels, const Target&) or
    9898       Target(const Target& org, const std::vector<size_t>& vec).
     
    109109    ///
    110110    bool binary(size_t i) const;
    111    
     111
    112112    ///
    113113    /// The size of returned vector is equal to number of classes. To
     
    154154    ///
    155155    size_t operator()(size_t sample) const;
    156    
     156
    157157    ///
    158158    /// @return the class of @a sample
     
    169169
    170170  private:
    171     /// @brief Copy Constructor 
     171    /// @brief Copy Constructor
    172172    // using compiler generated constructor
    173     //Target(const Target& other); 
     173    //Target(const Target& other);
    174174
    175175    // binary target for class i
     
    177177    std::vector<size_t> classes_; // class of sample i
    178178    // map between class label and class index (inverse of labels_)
    179     std::map<std::string,size_t> class_map_; 
     179    std::map<std::string,size_t> class_map_;
    180180    std::vector<std::string> labels_; // label of class i
    181    
     181
    182182    void init(const std::vector<std::string>&);
    183183
    184   }; 
    185  
     184  };
     185
    186186  ///
    187187  /// The output operator for the Target class.
Note: See TracChangeset for help on using the changeset viewer.