Changeset 1585
- Timestamp:
- Oct 15, 2008, 10:39:36 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/iterator_test.cc
r1552 r1585 138 138 139 139 // test std algorithm on IteratorWeighted 140 utility::Matrix m(1,3,1); 141 m(0,1)=2.0; 142 utility::Matrix w(1,3,1); 143 classifier::MatrixLookupWeighted mw(m,w); 140 utility::MatrixWeighted m_w(1, 3, 1, 1); 141 m_w(0,1).data()=2.0; 142 classifier::MatrixLookupWeighted mw(m_w); 144 143 classifier::DataLookupWeighted1D aw(mw,0,true); 145 144 size_t nof1=std::count(aw.begin(),aw.end(),utility::DataWeight(1.0, 1.0)); … … 195 194 suite.add(element_data==x_weighted.begin()->data()); 196 195 196 utility::Matrix m(mw.rows(), mw.columns()); 197 197 classifier::MatrixLookup ml(m); 198 198 classifier::DataLookup1D dl1(ml,0,true);
Note: See TracChangeset
for help on using the changeset viewer.