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
|
Line | |
---|
1 | // $Id: Kernel_SEV.cc 307 2005-05-03 13:28:29Z peter $ |
---|
2 | |
---|
3 | #include <c++_tools/svm/Kernel_SEV.h> |
---|
4 | |
---|
5 | #include <c++_tools/svm/KernelFunction.h> |
---|
6 | #include <c++_tools/svm/Kernel_MEV.h> |
---|
7 | #include <c++_tools/gslapi/matrix.h> |
---|
8 | #include <c++_tools/gslapi/vector.h> |
---|
9 | |
---|
10 | namespace theplu { |
---|
11 | namespace svm { |
---|
12 | |
---|
13 | Kernel_SEV::Kernel_SEV(const gslapi::matrix& data, const KernelFunction& kf) |
---|
14 | : Kernel_MEV(data,kf) |
---|
15 | { |
---|
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)); |
---|
21 | |
---|
22 | } |
---|
23 | |
---|
24 | Kernel_SEV::~Kernel_SEV(void) |
---|
25 | { |
---|
26 | } |
---|
27 | |
---|
28 | }} // of namespace svm and namespace theplu |
---|
Note: See
TracBrowser
for help on using the repository browser.