MeLOn
Loading...
Searching...
No Matches
melon::kernel::Kernel< T, V > Class Template Referenceabstract

Abstract parent class for kernel implementations. More...

#include <kernel.h>

Inheritance diagram for melon::kernel::Kernel< T, V >:
melon::kernel::KernelCompositeAdd< T, V > melon::kernel::KernelCompositeMultiply< T, V > melon::kernel::KernelConstant< T, V > melon::kernel::StationaryKernel< T, V > melon::kernel::KernelRBF< T, V > melon::kernel::Matern< T, V > melon::kernel::Matern12< T, V > melon::kernel::Matern32< T, V > melon::kernel::Matern52< T, V > melon::kernel::MaternInf< T, V >

Public Types

using RET = decltype(std::declval<T>() + std::declval<V>())
 

Public Member Functions

virtual ~Kernel ()=default
 Destructor.
 
virtual RET evaluate_kernel (std::vector< T > x1, std::vector< V > x2)=0
 Function for evalualting the kernel for the points x1 and x2.
 

Detailed Description

template<typename T, typename V>
class melon::kernel::Kernel< T, V >

Abstract parent class for kernel implementations.

Member Typedef Documentation

◆ RET

template<typename T , typename V >
using melon::kernel::Kernel< T, V >::RET = decltype(std::declval<T>() + std::declval<V>())

Constructor & Destructor Documentation

◆ ~Kernel()

template<typename T , typename V >
virtual melon::kernel::Kernel< T, V >::~Kernel ( )
virtualdefault

Destructor.

Member Function Documentation

◆ evaluate_kernel()

template<typename T , typename V >
virtual RET melon::kernel::Kernel< T, V >::evaluate_kernel ( std::vector< T > x1,
std::vector< V > x2 )
pure virtual

Function for evalualting the kernel for the points x1 and x2.

Parameters
[in]x1is a vector containing the first point
[in]x2is a vector containing the second point
Returns
returns the result of the kernel evaluation

Implemented in melon::kernel::KernelCompositeAdd< T, V >, melon::kernel::KernelCompositeMultiply< T, V >, melon::kernel::KernelConstant< T, V >, melon::kernel::Matern12< T, V >, melon::kernel::Matern32< T, V >, melon::kernel::Matern52< T, V >, melon::kernel::MaternInf< T, V >, and melon::kernel::KernelRBF< T, V >.


The documentation for this class was generated from the following file: