source: trunk/lib/svm/Kernel_MEV.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 Author Date Id Revision
File size: 535 bytes
RevLine 
[25]1// $Id: Kernel_MEV.cc 307 2005-05-03 13:28:29Z peter $
2
[307]3#include <c++_tools/svm/Kernel_MEV.h>
[25]4
[295]5#include <c++_tools/svm/KernelFunction.h>
6#include <c++_tools/gslapi/matrix.h>
7#include <c++_tools/gslapi/vector.h>
8
[42]9namespace theplu {
[295]10namespace svm { 
[25]11
[307]12Kernel_MEV::Kernel_MEV(const gslapi::matrix& data, const KernelFunction& kf)
13  : data_(data), kf_(&kf)
[25]14{
15}
16
[307]17
18Kernel_MEV::~Kernel_MEV(void)
[67]19{
[307]20} 
21
22double Kernel_MEV::operator()(size_t row, size_t column) const
23{
24  return (*kf_)(data_.TEMP_col_return(row),data_.TEMP_col_return(column));
[67]25}
26
27
[295]28}} // of namespace svm and namespace theplu
Note: See TracBrowser for help on using the repository browser.