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/MatrixLookupWeighted.cc

    r680 r720  
    231231
    232232
     233
     234  double MatrixLookupWeighted::data(size_t row, size_t column) const
     235  {
     236    return (*data_)(row_index_[row], column_index_[column]);
     237  }
     238
     239
     240
    233241  const MatrixLookupWeighted*
    234242  MatrixLookupWeighted::selected(const std::vector<size_t>& i) const
     
    256264
    257265
     266  double MatrixLookupWeighted::weight(size_t row, size_t column) const
     267  {
     268    return (*weights_)(row_index_[row], column_index_[column]);
     269  }
     270
     271
     272
    258273  bool MatrixLookupWeighted::weighted(void) const
    259274  {
    260275    return true;
     276  }
     277
     278
     279
     280  double MatrixLookupWeighted::operator()(const size_t row,
     281                                          const size_t column) const
     282  {
     283    return (weight(row,column) ? data(row,column)*weight(row,column) : 0);
    261284  }
    262285
Note: See TracChangeset for help on using the changeset viewer.