Changeset 336 for trunk/lib/svm/Kernel_MEV.h
- Timestamp:
- Jun 3, 2005, 4:16:19 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/svm/Kernel_MEV.h
r330 r336 1 1 // $Id$ 2 2 3 #ifndef _theplu_svm_kernel_mev 4 #define _theplu_svm_kernel_mev 3 #ifndef _theplu_svm_kernel_mev_ 4 #define _theplu_svm_kernel_mev_ 5 5 6 6 #include <c++_tools/svm/Kernel.h> 7 #include <c++_tools/svm/KernelFunction.h> 7 8 #include <c++_tools/gslapi/matrix.h> 8 9 9 10 namespace theplu { 10 11 namespace svm { 11 12 class KernelFunction;13 12 14 13 /// … … 48 47 const gslapi::matrix& weight); 49 48 49 /// 50 /// Copy constructor (not implemented) 51 /// 52 Kernel_MEV(const Kernel_MEV&); 53 50 54 /// 51 55 /// Destructor … … 57 61 /// matrix 58 62 /// 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)); } 60 65 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_; 61 74 62 75 }; // class Kernel_MEV
Note: See TracChangeset
for help on using the changeset viewer.