source: trunk/lib/svm/Kernel_SEV.cc @ 307

Last change on this file since 307 was 307, checked in by Peter, 18 years ago

changed names of Kernels and made them work

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 671 bytes
RevLine 
[306]1// $Id: Kernel_SEV.cc 307 2005-05-03 13:28:29Z peter $
2
[307]3#include <c++_tools/svm/Kernel_SEV.h>
[306]4
5#include <c++_tools/svm/KernelFunction.h>
[307]6#include <c++_tools/svm/Kernel_MEV.h>
[306]7#include <c++_tools/gslapi/matrix.h>
8#include <c++_tools/gslapi/vector.h>
9
10namespace theplu {
11namespace svm { 
12
[307]13Kernel_SEV::Kernel_SEV(const gslapi::matrix& data, const KernelFunction& kf)
14  : Kernel_MEV(data,kf)
[306]15{
[307]16  kernel_ = gslapi::matrix(data.columns(),data.columns());
17  for (size_t i=0; i<kernel_.rows(); i++) 
18    for (size_t j=i; j<kernel_.columns(); j++) 
19      kernel_(i,j) = kernel_(j,i) = 
20        (*kf_)(data_.TEMP_col_return(i),data_.TEMP_col_return(j));
[306]21
22}
23
[307]24Kernel_SEV::~Kernel_SEV(void)
[306]25{
26} 
27
28}} // of namespace svm and namespace theplu
Note: See TracBrowser for help on using the repository browser.