![]() |
MeLOn
|
#include <kernel.h>
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) | |
![]() | |
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 | |
![]() | |
using | RET = decltype(std::declval<T>() + std::declval<V>()) |
|
inlinevirtual |
Calculates the quadratic distance between two points x1 and x2.
[in] | x1 | is a vector containing the first point |
[in] | x2 | is a vector containing the second point |
Reimplemented in melon::kernel::Matern< T, V >.
|
pure virtual |
Function for calculating the distance used in the kernel (type of distance used can vary among kernels)
[in] | x1 | is a vector containing the first point |
[in] | x2 | is a vector containing the second point |
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 >.
Function for evalualting the kernel for a given distance.
[in] | distance | is a distance between two points for which the kernel is evaluated |
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 >.