#include <kernel.h>
|
virtual RET | _quadratic_distance (std::vector< T > x1, std::vector< V > x2) |
| Calculates the quadratic distance between two points x1 and x2. More...
|
|
virtual RET | evaluate_kernel (RET distance)=0 |
| Function for evalualting the kernel for a given distance. More...
|
|
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) More...
|
|
virtual | ~Kernel ()=default |
| Destructor. More...
|
|
virtual RET | evaluate_kernel (std::vector< T > x1, std::vector< V > x2)=0 |
| Function for evalualting the kernel for the points x1 and x2. More...
|
|
|
using | RET = decltype(std::declval< T >()+std::declval< V >()) |
|
◆ _quadratic_distance()
template<typename T , typename V >
Calculates the quadratic distance between two points x1 and x2.
- Parameters
-
[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 >.
◆ calculate_distance()
template<typename T , typename V >
◆ evaluate_kernel()
template<typename T , typename V >
The documentation for this class was generated from the following file:
- C:/Users/Linus/Documents/HiWi/SVT/MeLOn/myMeLOn/common/inc/kernel.h