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
|
Rev | Line | |
---|
[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] | 9 | namespace theplu { |
---|
[295] | 10 | namespace svm { |
---|
[25] | 11 | |
---|
[307] | 12 | Kernel_MEV::Kernel_MEV(const gslapi::matrix& data, const KernelFunction& kf) |
---|
| 13 | : data_(data), kf_(&kf) |
---|
[25] | 14 | { |
---|
| 15 | } |
---|
| 16 | |
---|
[307] | 17 | |
---|
| 18 | Kernel_MEV::~Kernel_MEV(void) |
---|
[67] | 19 | { |
---|
[307] | 20 | } |
---|
| 21 | |
---|
| 22 | double 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.