36#ifndef STK_KERNELHANDLER_H
37#define STK_KERNELHANDLER_H
62template<
typename Type>
111 template<
class Derived,
class Array>
140template<
class Derived,
class Array>
150 {
if (
it->second == idData) {
break;}}
181 if (!p_kernel)
return false;
In this file we define and implement the final class Array1D.
In this file we implement the final class CArray.
In this file we define the class and methods for computing a Gaussian Kernel.
In this file we define the class and methods for computing a Hamming Kernel.
In this file we define the class and methods for computing a Laplace Kernel.
In this file we define the class and methods for computing a Linear Kernel.
In this file we define the class and methods for computing a Polynomial Kernel.
In this file we define the class and methods for computing a RationalQuadratic Kernel.
In this file we define the enum and utilites method for the kernels.
A class derived from a DataHandlerBase allows to store various data sets identified by an idData and ...
std::map< std::string, std::string > InfoMap
bool addInfo(std::string const &idData, std::string const &idModel)
Add an info descriptor to the data handler.
Derived & push_back(Type const &v)
STL compatibility: append an element v.
implementation of the DataHandlerBase class for kernel mixture models.
Array1D< TaggedKernel >::iterator Iterator
Kernel::IKernel const * getKernel(String const &idData) const
get an instance of a kernel from the handler
Array1D< TaggedKernel > v_kernel_
Array of the kernels.
int nbSample_
Number of sample.
DataHandlerBase< KernelHandler >::InfoMap InfoMap
DataHandlerBase< KernelHandler > Base
bool isHandled(Kernel::IKernel *const p_kernel) const
utility lookup function allowing to know if some pointer on a kernel is handled by the KernelHandler.
void removeKernel(String const &idData)
remove an instance of a kernel to the handler
bool addKernel(Kernel::IKernel *p_kernel, String const &idData, String const &idModel)
add an instance of a kernel to the handler
~KernelHandler()
destructor.
std::pair< Kernel::IKernel *, String > TaggedKernel
KernelHandler()
default constructor
Array1D< TaggedKernel >::const_iterator ConstIterator
The Gaussian Kernel is a kernel of the form.
The Hamming Kernel is a kernel of the form.
Interface class for the kernels classes.
virtual int nbSample() const =0
pure virtual method.
The Laplace Kernel is a kernel of the form.
The Linear Kernel is a kernel of the form.
The Polynomial Kernel is a kernel of the form.
The RationalQuadratic Kernel is a kernel of the form.
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
kernelType stringToKernelType(std::string const &type)
Convert a String to a kernelType.
std::basic_string< Char > String
STK fundamental type of a String.
The namespace STK is the main domain space of the Statistical ToolKit project.
The DataHandlerTraits will give the type of container furnished by the concrete implementations of th...