![]() |
MeLOn
|
Abstract parent class for matern kernels. More...
#include <matern.h>
Public Member Functions | |
Matern () | |
Matern (std::shared_ptr< const KernelData > data) | |
![]() | |
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. | |
Protected Member Functions | |
RET | _quadratic_distance (std::vector< T > x1, std::vector< V > x2) override |
Calculates the quadratic distance between two points x1 and x2. | |
auto | _euclidian_distance (RET quadraticDistance) |
Calculates the euclidian distance from the quadratic distance. | |
Protected Attributes | |
std::shared_ptr< const KernelData > | _data |
Additional Inherited Members | |
![]() | |
using | RET = decltype(std::declval<T>() + std::declval<V>()) |
Abstract parent class for matern kernels.
melon::kernel::Matern< T, V >::Matern | ( | std::shared_ptr< const KernelData > | data | ) |
|
inlineprotected |
Calculates the euclidian distance from the quadratic distance.
[in] | quadraticDistance | is the quadraticDistance between two points which iis transformed into the euclidian distance |
|
inlineoverrideprotectedvirtual |
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 from melon::kernel::StationaryKernel< T, V >.
|
protected |
KernelData object containing the kernel parameters