![]() |
MeLOn
|
Implementation of Radial Basis Function kernel. More...
#include <kernel.h>
Public Member Functions | |
KernelRBF (const double gamma) | |
Constructor. | |
RET | evaluate_kernel (std::vector< T > x1, std::vector< V > x2) override |
Function for evalualting the kernel. | |
RET | calculate_distance (std::vector< T > x1, std::vector< V > x2) override |
Function for calculating the distance used in the kernel (type of distance used can vary among kernels) | |
RET | evaluate_kernel (RET distance) override |
Function for evalualting the kernel for a given distance. | |
![]() | |
virtual RET | _quadratic_distance (std::vector< T > x1, std::vector< V > x2) |
Calculates the quadratic distance between two points x1 and x2. | |
![]() | |
virtual | ~Kernel ()=default |
Destructor. | |
Private Attributes | |
const double | _gamma |
Additional Inherited Members | |
![]() | |
using | RET = decltype(std::declval<T>() + std::declval<V>()) |
Implementation of Radial Basis Function kernel.
|
inline |
Constructor.
[in] | gamma | is the value for the gamma parameter of the rbf kernel |
|
inlineoverridevirtual |
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 >.
|
inlineoverridevirtual |
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 >.
|
inlineoverridevirtual |
Function for evalualting the kernel.
[in] | x1 | is a vector containing the first point |
[in] | x2 | is a vector containing the second point |
Implements melon::kernel::Kernel< T, V >.