Changeset 512
 Timestamp:
 Feb 18, 2006, 4:06:11 PM (17 years ago)
 Location:
 trunk/lib/classifier
 Files:

 4 edited
Legend:
 Unmodified
 Added
 Removed

trunk/lib/classifier/Kernel.h
r451 r512 35 35 /// Default constructor 36 36 /// 37 Kernel(void) {};37 //Kernel(void) {}; 38 38 39 39 /// … … 47 47 /// sample. @note Can not handle NaNs. 48 48 /// 49 Kernel(const gslapi::matrix&, const KernelFunction&) {}; 49 Kernel(const gslapi::matrix& data, const KernelFunction& kf) 50 : data_(data), kf_(&kf) {}; 50 51 51 52 /// … … 66 67 67 68 protected: 69 const gslapi::matrix& data_; 70 const KernelFunction* kf_; 68 71 69 72 }; // class Kernel 
trunk/lib/classifier/Kernel_MEV.h
r475 r512 29 29 30 30 /// 31 /// Default constructor (not implemented)32 ///33 Kernel_MEV(void);34 35 ///36 31 /// Constructor taking the data matrix and KernelFunction as 37 32 /// input.Each column in the data matrix corresponds to one … … 39 34 /// 40 35 inline Kernel_MEV(const gslapi::matrix& data, const KernelFunction& kf) 41 : Kernel(data,kf) , data_(data), kf_(&kf){}36 : Kernel(data,kf) {} 42 37 43 38 /// … … 72 67 73 68 private: 74 const gslapi::matrix& data_;75 const KernelFunction* kf_;76 69 77 70 }; // class Kernel_MEV 
trunk/lib/classifier/Kernel_SEV.cc
r451 r512 13 13 14 14 Kernel_SEV::Kernel_SEV(const gslapi::matrix& data, const KernelFunction& kf) 15 : Kernel(data,kf) , data_(data), kf_(&kf)15 : Kernel(data,kf) 16 16 { 17 17 kernel_matrix_ = gslapi::matrix(data.columns(),data.columns()); 
trunk/lib/classifier/Kernel_SEV.h
r451 r512 63 63 64 64 private: 65 const gslapi::matrix& data_;66 const KernelFunction* kf_;67 65 gslapi::matrix kernel_matrix_; 68 66
Note: See TracChangeset
for help on using the changeset viewer.