Ignore:
Timestamp:
Mar 5, 2008, 3:26:08 PM (14 years ago)
Author:
Peter
Message:

Return by value from FeatureSelector?. Copying a Lookup is cheap, so no reason to return by reference and keep a collection of garbage

File:
1 edited

Legend:

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

    r1134 r1204  
    5757    /// @return MatrixLookup containing only selected features.
    5858    ///
    59     const MatrixLookup& get(const MatrixLookup& data);
     59    const MatrixLookup get(const MatrixLookup& data);
    6060
    6161    ///
    6262    /// @return MatrixLookupWeighted containing only selected features.
    6363    ///
    64     const MatrixLookupWeighted& get(const MatrixLookupWeighted& data);
     64    const MatrixLookupWeighted get(const MatrixLookupWeighted& data);
    6565
    6666    ///
     
    9797
    9898  private:
    99     std::list<const MatrixLookup*> garbage_;
    100     std::list<const MatrixLookupWeighted*> garbage_weighted_;
    10199
    102100  };
Note: See TracChangeset for help on using the changeset viewer.