Ignore:
Timestamp:
Feb 23, 2008, 11:52:43 PM (14 years ago)
Author:
Peter
Message:

using Index class instead of std::vector<size_t>

File:
1 edited

Legend:

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

    r1000 r1134  
    5050
    5151
    52   const std::vector<size_t> FeatureSelector::features(void) const
     52  const utility::Index FeatureSelector::features(void) const
    5353  {
    5454    return features_;
     
    5858  const MatrixLookup& FeatureSelector::get(const MatrixLookup& matrix)
    5959  {
    60     garbage_.push_back(new MatrixLookup(matrix,features_,true));
     60    garbage_.push_back(new MatrixLookup(matrix,utility::Index(features_),true));
    6161    return *garbage_.back();
    6262  }
     
    6666  FeatureSelector::get(const MatrixLookupWeighted& matrix)
    6767  {
    68     garbage_weighted_.push_back(new MatrixLookupWeighted(matrix,features_,
     68    garbage_weighted_.push_back(new MatrixLookupWeighted(matrix,
     69                                                         utility::Index(features_),
    6970                                                         true));
    7071    return *garbage_weighted_.back();
Note: See TracChangeset for help on using the changeset viewer.