Ignore:
Timestamp:
Dec 26, 2006, 7:21:36 PM (15 years ago)
Author:
Jari Häkkinen
Message:

Fixes #170. Almost all inlines removed, some classes have no cc file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/classifier/DataLookupWeighted1D.cc

    r680 r720  
    5858  }
    5959
     60
    6061  DataLookupWeighted1D::~DataLookupWeighted1D()
    6162  {
     
    6566
    6667
     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
    6797}}} // of namespace classifier, yat, and theplu
Note: See TracChangeset for help on using the changeset viewer.