Changeset 1552 for trunk/yat/classifier
- Timestamp:
- Oct 6, 2008, 4:36:56 PM (14 years ago)
- Location:
- trunk/yat/classifier
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/classifier/DataLookup1D.h
r1525 r1552 44 44 { 45 45 public: 46 /** 47 value_type is double 48 49 \since New in yat 0.5 50 */ 51 typedef MatrixLookup::value_type value_type; 52 53 /** 54 const_reference type is const double& 55 56 \since New in yat 0.5 57 */ 58 typedef MatrixLookup::const_reference const_reference; 59 46 60 /// 'Read Only' iterator 47 61 typedef MatrixLookup::const_row_iterator const_iterator; -
trunk/yat/classifier/DataLookupWeighted1D.cc
r1526 r1552 110 110 111 111 112 std::pair<double,double> DataLookupWeighted1D::operator()(const size_t i) const 112 DataLookupWeighted1D::const_reference 113 DataLookupWeighted1D::operator()(const size_t i) const 113 114 { 114 115 return column_vector_ ? (*matrix_)(i,index_) : (*matrix_)(index_,i); -
trunk/yat/classifier/DataLookupWeighted1D.h
r1526 r1552 47 47 48 48 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 49 63 /// 'Read Only' iterator 50 64 typedef MatrixLookupWeighted::const_row_iterator const_iterator; … … 102 116 double weight(const size_t i) const; 103 117 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; 108 122 109 123 private: -
trunk/yat/classifier/KernelLookup.h
r1549 r1552 68 68 69 69 public: 70 /** 71 value_type is double 72 73 \since New in yat 0.5 74 */ 75 typedef double value_type; 76 70 77 /** 71 78 const_reference type is const double -
trunk/yat/classifier/MatrixLookupWeighted.cc
r1487 r1552 315 315 316 316 317 std::pair<double, double>317 MatrixLookupWeighted::const_reference 318 318 MatrixLookupWeighted::operator()(const size_t row, const size_t column) const 319 319 { 320 return std::make_pair(data(row, column), weight(row,column));320 return utility::DataWeight(data(row, column), weight(row,column)); 321 321 } 322 322 -
trunk/yat/classifier/MatrixLookupWeighted.h
r1549 r1552 89 89 typedef utility::StrideIterator< 90 90 utility::Container2DIterator<const MatrixLookupWeighted, 91 const std::pair<double, double>, void,92 const std::pair<double, double>,91 value_type, void, 92 const_reference, 93 93 utility::IteratorPolicyWeighted<const MatrixLookupWeighted, 94 94 const double, … … 343 343 /// @return data-weight pair (@a row, @a column) 344 344 /// 345 std::pair<double, double> 346 operator()(const size_t row, const size_t column) const; 345 const_reference operator()(const size_t row, const size_t column) const; 347 346 348 347 ///
Note: See TracChangeset
for help on using the changeset viewer.