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

#include <kernel.h>

Inheritance diagram for melon::kernel::StationaryKernel< T, V >:
melon::kernel::Kernel< 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 Member Functions

virtual RET _quadratic_distance (std::vector< T > x1, std::vector< V > x2)
 Calculates the quadratic distance between two points x1 and x2.
 
virtual RET evaluate_kernel (RET distance)=0
 Function for evalualting the kernel for a given distance.
 
virtual RET calculate_distance (std::vector< T > x1, std::vector< V > x2)=0
 Function for calculating the distance used in the kernel (type of distance used can vary among kernels)
 
- Public Member Functions inherited from melon::kernel::Kernel< T, V >
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.
 

Additional Inherited Members

- Public Types inherited from melon::kernel::Kernel< T, V >
using RET = decltype(std::declval<T>() + std::declval<V>())
 

Member Function Documentation

◆ _quadratic_distance()

template<typename T , typename V >
virtual RET melon::kernel::StationaryKernel< T, V >::_quadratic_distance ( std::vector< T > x1,
std::vector< V > x2 )
inlinevirtual

Calculates the quadratic distance between two points x1 and x2.

Parameters
[in]x1is a vector containing the first point
[in]x2is a vector containing the second point

Reimplemented in melon::kernel::Matern< T, V >.

◆ calculate_distance()

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

Function for calculating the distance used in the kernel (type of distance used can vary among kernels)

Parameters
[in]x1is a vector containing the first point
[in]x2is a vector containing the second point
Returns
returns the distance used in the kernel

Implemented in 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 >.

◆ evaluate_kernel()

template<typename T , typename V >
virtual RET melon::kernel::StationaryKernel< T, V >::evaluate_kernel ( RET distance)
pure virtual

Function for evalualting the kernel for a given distance.

Parameters
[in]distanceis a distance between two points for which the kernel is evaluated
Returns
returns the result of the kernel evaluation

Implemented in 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: