![]() |
MeLOn
|
Class implementation of Matern52 kernel. More...
#include <matern.h>
Public Member Functions | |
RET | evaluate_kernel (std::vector< T > x1, std::vector< V > x2) |
Function for evalualting the kernel for the points x1 and x2. | |
RET | evaluate_kernel (RET distance) |
Function for evalualting the kernel for a given distance. | |
RET | calculate_distance (std::vector< T > x1, std::vector< V > x2) |
Function for calculating the distance used in the kernel (type of distance used can vary among kernels) | |
![]() | |
Matern () | |
Matern (std::shared_ptr< const KernelData > data) | |
![]() | |
virtual | ~Kernel ()=default |
Destructor. | |
Additional Inherited Members | |
![]() | |
using | RET = decltype(std::declval<T>() + std::declval<V>()) |
![]() | |
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. | |
![]() | |
std::shared_ptr< const KernelData > | _data |
Class implementation of Matern52 kernel.
|
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 |
Implements melon::kernel::StationaryKernel< 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 |
Implements melon::kernel::StationaryKernel< T, V >.
|
virtual |
Function for evalualting the kernel for the points x1 and x2.
[in] | x1 | is a vector containing the first point |
[in] | x2 | is a vector containing the second point |
Implements melon::kernel::Kernel< T, V >.