Ignore:
Timestamp:
Dec 19, 2006, 9:59:19 AM (15 years ago)
Author:
Jari Häkkinen
Message:

Addresses #65 and #170.

File:
1 edited

Legend:

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

    r680 r706  
    9191
    9292    ///
    93     /// Default binary is set to false for all classes except class 0.
     93    /// @brief Default binary is set to false for all classes except
     94    /// class 0.
    9495    ///
    9596    /// @return binary target for sample @a i
     
    9798    /// @see set_binary
    9899    ///
    99     inline bool binary(const size_t i) const
    100     { assert(i<size()); return binary_[operator()(i)]; }
     100    inline bool binary(const size_t i) const { return binary_[operator()(i)]; }
    101101   
    102102    ///
     
    110110    /// 0 which is set to true.
    111111    ///
    112     inline void set_binary(const size_t i, const bool b)
    113     { assert(i<nof_classes()); binary_[i]=b; }
     112    inline void set_binary(const size_t i, const bool b) { binary_[i]=b; }
    114113
    115114    ///
     
    141140    ///
    142141    inline size_t operator()(const size_t sample) const
    143     { assert(sample<size()); return classes_[sample]; }
     142    { return classes_[sample]; }
    144143   
    145144    ///
Note: See TracChangeset for help on using the changeset viewer.