Ignore:
Timestamp:
Jun 3, 2005, 4:16:19 PM (18 years ago)
Author:
Peter
Message:

moved members data_ and kf_ from base class Kernel to Kernel_SEV and Kernel_MEV. These two classes should perhaps in future be inherited from a intervening class since they are overlapping, but different from KernelView?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/svm/Kernel_MEV.h

    r330 r336  
    11// $Id$
    22
    3 #ifndef _theplu_svm_kernel_mev
    4 #define _theplu_svm_kernel_mev
     3#ifndef _theplu_svm_kernel_mev_
     4#define _theplu_svm_kernel_mev_
    55
    66#include <c++_tools/svm/Kernel.h>
     7#include <c++_tools/svm/KernelFunction.h>
    78#include <c++_tools/gslapi/matrix.h>
    89
    910namespace theplu {
    1011namespace svm {
    11 
    12   class KernelFunction;
    1312
    1413  ///
     
    4847               const gslapi::matrix& weight);
    4948
     49    ///
     50    /// Copy constructor (not implemented)
     51    ///
     52    Kernel_MEV(const Kernel_MEV&);
     53
    5054    ///
    5155    ///   Destructor
     
    5761    /// matrix
    5862    ///
    59     double operator()(const size_t row,const size_t column) const;
     63    double operator()(const size_t row,const size_t column) const
     64    { return (*kf_)(data_.TEMP_col_return(row),data_.TEMP_col_return(column)); }
    6065
     66    ///
     67    /// @brief number of samples
     68    ///
     69    inline size_t size(void) const { return data_.columns(); }
     70
     71  private:
     72    const gslapi::matrix& data_;
     73    const KernelFunction* kf_;
    6174
    6275  }; // class Kernel_MEV
Note: See TracChangeset for help on using the changeset viewer.