![]() |
MeLOn
|
Kernel which always returns a constant value. More...
#include <kernel.h>
Public Member Functions | |
KernelConstant () | |
Constructor. Initializes the kernels return value to 1. More... | |
KernelConstant (const T f) | |
Constructor. More... | |
KernelConstant (const V f) | |
Constructor. More... | |
RET | evaluate_kernel (std::vector< T > x1, std::vector< V > x2) |
Function for evalualting the kernel. More... | |
![]() | |
virtual | ~Kernel ()=default |
Destructor. More... | |
Private Attributes | |
const RET | _f |
Additional Inherited Members | |
![]() | |
using | RET = decltype(std::declval< T >()+std::declval< V >()) |
Kernel which always returns a constant value.
|
inline |
Constructor. Initializes the kernels return value to 1.
|
inline |
Constructor.
[in] | f | is the value to be returned by the kernel |
|
inline |
Constructor.
[in] | f | is the value to be returned by the kernel |
|
inlinevirtual |
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 >.
|
private |
Return value of the kernel