Changeset 890 for trunk/yat/classifier
- Timestamp:
- Sep 25, 2007, 11:35:25 AM (16 years ago)
- Location:
- trunk/yat/classifier
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/classifier/DataLookupWeighted1D.cc
r865 r890 67 67 68 68 69 DataLookupWeighted1D::const_iterator DataLookupWeighted1D::begin(void) const 70 { 71 return DataLookupWeighted1D::const_iterator(*this, 0); 72 } 73 74 69 75 double DataLookupWeighted1D::data(const size_t i) const 70 76 { 71 77 return column_vector_? matrix_->data(i,index_) : matrix_->data(index_,i); 72 78 } 79 80 81 DataLookupWeighted1D::const_iterator DataLookupWeighted1D::end(void) const 82 { 83 return DataLookupWeighted1D::const_iterator(*this, size()); 84 } 85 73 86 74 87 -
trunk/yat/classifier/DataLookupWeighted1D.h
r865 r890 26 26 */ 27 27 28 #include "yat/utility/IteratorWeighted.h" 29 28 30 #include <iostream> 29 31 #include <vector> … … 44 46 45 47 public: 48 49 typedef utility::IteratorWeighted<const double, const classifier::DataLookupWeighted1D> 50 const_iterator; 46 51 47 52 /// … … 72 77 73 78 /** 79 */ 80 const_iterator begin() const; 81 82 /** 74 83 \return data(i) 75 84 */ 76 85 double data(const size_t i) const; 86 87 /** 88 */ 89 const_iterator end() const; 77 90 78 91 ///
Note: See TracChangeset
for help on using the changeset viewer.