Changeset 720 for trunk/yat/classifier/DataLookupWeighted1D.cc
 Timestamp:
 Dec 26, 2006, 7:21:36 PM (15 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/yat/classifier/DataLookupWeighted1D.cc
r680 r720 58 58 } 59 59 60 60 61 DataLookupWeighted1D::~DataLookupWeighted1D() 61 62 { … … 65 66 66 67 68 double DataLookupWeighted1D::data(const size_t i) const 69 { 70 return column_vector_? matrix_>data(i,index_) : matrix_>data(index_,i); 71 } 72 73 74 size_t DataLookupWeighted1D::size(void) const 75 { 76 return column_vector_ ? matrix_>rows() : matrix_>columns(); 77 } 78 79 80 double DataLookupWeighted1D::weight(const size_t i) const 81 { 82 return column_vector_? matrix_>weight(i,index_) : matrix_>weight(index_,i); 83 } 84 85 86 double DataLookupWeighted1D::operator()(const size_t i) const 87 { 88 return column_vector_ ? (*matrix_)(i,index_) : (*matrix_)(index_,i); 89 } 90 91 92 double DataLookupWeighted1D::operator[](const size_t i) const 93 { 94 return this>operator()(i); 95 } 96 67 97 }}} // of namespace classifier, yat, and theplu
Note: See TracChangeset
for help on using the changeset viewer.