Ignore:
Timestamp:
Oct 6, 2008, 4:36:56 PM (13 years ago)
Author:
Peter
Message:

using DataWeight? rather than std::pair<double, double>

File:
1 edited

Legend:

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

    r1526 r1552  
    4747 
    4848  public:
     49    /**
     50       value_type is DataWeight
     51
     52       \since New in yat 0.5
     53     */
     54    typedef utility::DataWeight value_type;
     55
     56    /**
     57       const_reference type is const DataWeight
     58
     59       \since New in yat 0.5
     60     */
     61    typedef const utility::DataWeight const_reference;
     62
    4963    /// 'Read Only' iterator
    5064    typedef MatrixLookupWeighted::const_row_iterator const_iterator;
     
    102116    double weight(const size_t i) const;
    103117
    104     ///
    105     /// @return data(i) * weight(i)
    106     ///
    107     std::pair<double, double> operator()(const size_t i) const;
     118    /**
     119       \brief access operator
     120     */
     121    const_reference operator()(const size_t i) const;
    108122
    109123  private:
Note: See TracChangeset for help on using the changeset viewer.