Changeset 631


Ignore:
Timestamp:
Sep 5, 2006, 10:47:12 AM (15 years ago)
Author:
Peter
Message:

fixes #102 added weighted() to DataLookup2D.

Location:
trunk/c++_tools/classifier
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/c++_tools/classifier/DataLookup2D.h

    r608 r631  
    132132
    133133    ///
     134    /// Is lookup weighted?
     135    ///
     136    virtual bool weighted(void) const=0;
     137
     138    ///
    134139    /// @brief access operator
    135140    ///
  • trunk/c++_tools/classifier/MatrixLookup.cc

    r616 r631  
    169169
    170170
     171  bool MatrixLookup::weighted(void) const
     172  {
     173    return false;
     174  }
     175
     176
     177
    171178  const MatrixLookup& MatrixLookup::operator=(const MatrixLookup& other)
    172179  {
  • trunk/c++_tools/classifier/MatrixLookup.h

    r616 r631  
    225225                                        const std::vector<size_t>& val) const;
    226226    ///
     227    /// @return false
     228    ///
     229    bool weighted(void) const;
     230
     231    ///
    227232    /// Access operator
    228233    ///
  • trunk/c++_tools/classifier/MatrixLookupWeighted.cc

    r624 r631  
    210210
    211211
     212  bool MatrixLookupWeighted::weighted(void) const
     213  {
     214    return true;
     215  }
     216
     217
     218
    212219  const MatrixLookupWeighted& MatrixLookupWeighted::operator=
    213220  (const MatrixLookupWeighted& other)
  • trunk/c++_tools/classifier/MatrixLookupWeighted.h

    r624 r631  
    259259
    260260    ///
     261    /// @return true
     262    ///
     263    bool weighted(void) const;
     264
     265    ///
    261266    /// Access operator
    262267    ///
Note: See TracChangeset for help on using the changeset viewer.