1 #ifndef _theplu_yat_classifier_kernel_
2 #define _theplu_yat_classifier_kernel_
28 #include "KernelFunction.h"
35 namespace classifier {
38 class MatrixLookupWeighted;
73 const bool own=
false);
84 const bool own=
false);
90 Kernel(
const Kernel& kernel,
const std::vector<size_t>& index);
104 virtual double operator()(
const size_t row,
const size_t column)
const=0;
156 const bool own=
false)
const=0;
162 size_t size(
void)
const;
General view into utility::Matrix.
Definition: MatrixLookup.h:70
unsigned int * ref_count_w_
Definition: Kernel.h:187
const MatrixLookup * ml_
underlying data
Definition: Kernel.h:171
const MatrixLookupWeighted & data_weighted(void) const
Interface Class for Kernels.
Definition: Kernel.h:57
Class for general vector view.
Definition: DataLookup1D.h:43
Interface class calculating elements in Kernel.
Definition: KernelFunction.h:37
double element(const DataLookup1D &vec, const size_t i) const
virtual const Kernel * make_kernel(const MatrixLookup &, const bool) const =0
const KernelFunction * kf_
type of Kernel Function e.g. Gaussian (aka RBF)
Definition: Kernel.h:175
size_t size(void) const
number of samples
General view into utility::MatrixWeighted.
Definition: MatrixLookupWeighted.h:63
virtual ~Kernel(void)
Destructor.
Kernel(const MatrixLookup &data, const KernelFunction &kf, const bool own=false)
bool weighted(void) const
const MatrixLookup & data(void) const
virtual double operator()(const size_t row, const size_t column) const =0
Class for general weighted vector view.
Definition: DataLookupWeighted1D.h:43
const MatrixLookupWeighted * mlw_
same as data_ if weifghted otherwise a NULL pointer
Definition: Kernel.h:173
unsigned int * ref_count_
Definition: Kernel.h:181