Ignore:
Timestamp:
Feb 27, 2008, 1:06:55 AM (14 years ago)
Author:
Peter
Message:

removing DataLookup2D closes ticket:243

File:
1 edited

Legend:

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

    r1169 r1170  
    2626*/
    2727
    28 #include "DataLookup2D.h"
    2928#include "yat/utility/Container2DIterator.h"
     29#include "yat/utility/Index.h"
    3030#include "yat/utility/IteratorPolicy.h"
    3131#include "yat/utility/SmartPtr.h"
     
    6767  /// constructors and assignments.
    6868  ///
    69   class MatrixLookupWeighted : public DataLookup2D
     69  class MatrixLookupWeighted
    7070  {
    7171 
     
    284284    const_row_iterator begin_row(size_t) const;
    285285
     286    /**
     287       \return number of columns
     288    */
     289    size_t columns(void) const;
     290
    286291    ///
    287292    /// @return data value of element (@a row, @a column)
     
    303308     */
    304309    const_row_iterator end_row(size_t) const;
     310
     311    /**
     312       \return number of rows
     313    */
     314    size_t rows(void) const;
    305315
    306316    ///
     
    333343  private:
    334344    typedef utility::SmartPtr<const utility::Matrix> MatrixP;
     345    utility::Index column_index_;
    335346    MatrixP data_;
     347    utility::Index row_index_;
    336348    MatrixP weights_;
     349
     350    // for assertions
     351    bool validate(void) const;
    337352  }; 
    338353 
Note: See TracChangeset for help on using the changeset viewer.