yat  0.12.3pre
Kernel_MEV.h
1 #ifndef _theplu_yat_classifier_kernel_mev_
2 #define _theplu_yat_classifier_kernel_mev_
3 
4 // $Id: Kernel_MEV.h 2119 2009-12-12 23:11:43Z peter $
5 
6 /*
7  Copyright (C) 2003 Peter Johansson
8  Copyright (C) 2004, 2005 Jari Häkkinen, Peter Johansson
9  Copyright (C) 2006 Jari Häkkinen, Peter Johansson, Markus Ringnér
10  Copyright (C) 2007, 2008 Jari Häkkinen, Peter Johansson
11 
12  This file is part of the yat library, http://dev.thep.lu.se/yat
13 
14  The yat library is free software; you can redistribute it and/or
15  modify it under the terms of the GNU General Public License as
16  published by the Free Software Foundation; either version 3 of the
17  License, or (at your option) any later version.
18 
19  The yat library is distributed in the hope that it will be useful,
20  but WITHOUT ANY WARRANTY; without even the implied warranty of
21  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22  General Public License for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with yat. If not, see <http://www.gnu.org/licenses/>.
26 */
27 
28 #include "Kernel.h"
29 #include "KernelFunction.h"
30 
31 namespace theplu {
32 namespace yat {
33 namespace classifier {
34  class MatrixLookup;
35  class MatrixLookupWeighted;
36 
48  class Kernel_MEV : public Kernel
49  {
50 
51  public:
52 
58  Kernel_MEV(const MatrixLookup& data, const KernelFunction& kf,
59  const bool own=false);
60 
61 
67  Kernel_MEV(const MatrixLookupWeighted& data, const KernelFunction& kf,
68  const bool own=false);
69 
70 
75  Kernel_MEV(const Kernel_MEV& kernel, const std::vector<size_t>& index);
76 
77 
82  double operator()(const size_t row, const size_t column) const;
83 
92  const Kernel_MEV* make_kernel(const MatrixLookup&,
93  const bool own=false) const;
94 
95 
105  const bool own=false) const;
106 
107 
108  private:
112  Kernel_MEV(const Kernel_MEV&);
113  const Kernel_MEV& operator=(const Kernel_MEV&);
114 
115  }; // class Kernel_MEV
116 
117 }}} // of namespace classifier, yat, and theplu
118 
119 #endif
General view into utility::Matrix.
Definition: MatrixLookup.h:70
Interface Class for Kernels.
Definition: Kernel.h:57
Kernel_MEV(const MatrixLookup &data, const KernelFunction &kf, const bool own=false)
Interface class calculating elements in Kernel.
Definition: KernelFunction.h:37
const Kernel_MEV * make_kernel(const MatrixLookup &, const bool own=false) const
General view into utility::MatrixWeighted.
Definition: MatrixLookupWeighted.h:63
double operator()(const size_t row, const size_t column) const
Memory Efficient Kernel.
Definition: Kernel_MEV.h:48
const MatrixLookup & data(void) const

Generated on Mon Jun 1 2015 12:29:51 for yat by  doxygen 1.8.5