Changeset 1090
- Timestamp:
- Feb 14, 2008, 4:22:54 PM (16 years ago)
- Location:
- trunk/yat/classifier
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/classifier/DataLookupWeighted1D.h
r1088 r1090 26 26 */ 27 27 28 #include " DataLookup2D.h"28 #include "MatrixLookupWeighted.h" 29 29 #include "yat/utility/Iterator.h" 30 30 #include "yat/utility/IteratorPolicy.h" … … 39 39 namespace classifier { 40 40 41 class MatrixLookupWeighted;42 43 41 /// 44 42 /// @brief Class for general weighted vector view. … … 52 50 /// 'Read Only' iterator 53 51 typedef utility::StrideIterator< 54 utility::Iterator<const DataLookup2D, const std::pair<double, double>, 55 void, const std::pair<double, double>, 56 utility::IteratorPolicyWeighted<const DataLookup2D, 52 utility::Iterator<const MatrixLookupWeighted, 53 const std::pair<double, double>, void, 54 const std::pair<double, double>, 55 utility::IteratorPolicyWeighted<const MatrixLookupWeighted, 57 56 const double, 58 57 const double> > > … … 63 62 /// 64 63 /// @param row_vector if true (default) DataLookup1D is 65 /// looking into a row of DataLookup2D, otherwise looking into64 /// looking into a row of MatrixLookupWeighted, otherwise looking into 66 65 /// a column. @param index which row/column to look into. 67 66 /// … … 76 75 /// 77 76 /// Construct DataLookup1D that owns its underlying matrix. Object 78 /// has size @ size and all its element is equal to @a value.77 /// has size \a size and all its element is equal to \a value. 79 78 /// 80 79 DataLookupWeighted1D(const size_t size, double value=0, double weight=1); -
trunk/yat/classifier/MatrixLookupWeighted.h
r1035 r1090 27 27 28 28 #include "DataLookup2D.h" 29 #include "yat/utility/Iterator.h" 30 #include "yat/utility/IteratorPolicy.h" 31 #include "yat/utility/StrideIterator.h" 29 32 30 33 #include <iostream> 34 #include <utility> 31 35 #include <vector> 32 36 … … 66 70 67 71 public: 68 72 /// 'Read Only' iterator 73 typedef utility::StrideIterator< 74 utility::Iterator<const MatrixLookupWeighted, 75 const std::pair<double, double>, void, 76 const std::pair<double, double>, 77 utility::IteratorPolicyWeighted<const MatrixLookupWeighted, 78 const double, 79 const double> > > 80 const_iterator; 69 81 70 82 ///
Note: See TracChangeset
for help on using the changeset viewer.