Ignore:
Timestamp:
Sep 5, 2006, 10:31:04 AM (15 years ago)
Author:
Peter
Message:

fixes #125 removing obsolete function and cleaning in Kernel classes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/c++_tools/classifier/Kernel_MEV.h

    r628 r629  
    6363    double operator()(const size_t row, const size_t column) const;
    6464   
     65    ///
    6566    ///
    66     /// Calculates the scalar product using the KernelFunction between
    67     /// data vector @a vec and column \f$ i \f$ in data matrix.
    6867    ///
    69     /// @return kernel element between data @a vec and training sample @a i
    70     ///
    71     inline double element(const DataLookup1D& vec, const size_t i) const
    72     { return kf_->operator()(vec, DataLookup1D(*data_,i,false)); }
    73      
    74     ///
    75     /// Using the KernelFunction this function calculates the scalar
    76     /// product between vector @a vec and the column \f$ i \f$ in data
    77     /// matrix. The KernelFunction expects a weight vector for each of
    78     /// the two data vectors and as this Kernel is non-weighted each
    79     /// value in the data matrix is associated to a unity weight.
    80     ///
    81     /// @return weighted kernel element between data @a vec and
    82     /// training sample @a i
    83     ///
    84     inline double element(const DataLookup1D& vec, const DataLookup1D& w,
    85                           const size_t i) const
    86     {return (*kf_)(vec, DataLookup1D(*data_,i,false),
    87                    w, DataLookup1D(w.size(),1.0));}
    88 
    89     /// @todo remove
    9068    const Kernel_MEV* selected(const std::vector<size_t>& index) const;
    91 
    92     ///
    93     /// @return false
    94     ///
    95     inline bool weighted(void) const { return false; }
    9669
    9770  private:
Note: See TracChangeset for help on using the changeset viewer.