Changeset 1549 for trunk/yat/classifier


Ignore:
Timestamp:
Oct 6, 2008, 1:49:03 PM (13 years ago)
Author:
Peter
Message:

adding some typedefs in Container2Ds - refs #448

Location:
trunk/yat/classifier
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/classifier/KernelLookup.cc

    r1487 r1549  
    350350
    351351
    352   double KernelLookup::operator()(size_t row, size_t column) const
     352  KernelLookup::const_reference
     353  KernelLookup::operator()(size_t row, size_t column) const
    353354  {
    354355    return (*kernel_)(row_index_[row],column_index_[column]);
  • trunk/yat/classifier/KernelLookup.h

    r1529 r1549  
    6868
    6969  public:
     70    /**
     71       const_reference type is const double
     72
     73       \since New in yat 0.5
     74     */
     75    typedef const double const_reference;
     76
    7077    /// 'Read Only' iterator
    7178    typedef utility::StrideIterator<
     
    301308       matrix
    302309    */
    303     double operator()(size_t row, size_t column) const;
     310    const_reference operator()(size_t row, size_t column) const;
    304311
    305312  private:
  • trunk/yat/classifier/MatrixLookup.h

    r1530 r1549  
    7272  {
    7373  public:
     74    /**
     75       value_type is double
     76
     77       \since New in yat 0.5
     78     */
     79    typedef utility::Matrix::value_type value_type;
     80
     81    /**
     82       const_reference type is const double&
     83
     84       \since New in yat 0.5
     85     */
     86    typedef utility::Matrix::const_reference const_reference;
     87
    7488    /// 'Read Only' iterator
    7589    typedef utility::Container2DIterator<const MatrixLookup, double,
  • trunk/yat/classifier/MatrixLookupWeighted.h

    r1487 r1549  
    2626
    2727#include "yat/utility/Container2DIterator.h"
     28#include "yat/utility/DataWeight.h"
    2829#include "yat/utility/Index.h"
    2930#include "yat/utility/IteratorPolicy.h"
     
    7172 
    7273  public:
     74    /**
     75       value_type is DataWeight
     76
     77       \since New in yat 0.5
     78     */
     79    typedef utility::DataWeight value_type;
     80
     81    /**
     82       const_reference type is const DataWeight
     83
     84       \since New in yat 0.5
     85     */
     86    typedef const utility::DataWeight const_reference;
     87
    7388    /// 'Read Only' iterator
    7489    typedef utility::StrideIterator<
Note: See TracChangeset for help on using the changeset viewer.