![]() |
MeLOn
|
Composite kernel which on evaluation adds the evaluation results of its subkernels. More...
#include <kernel.h>
Public Member Functions | |
void | add (std::shared_ptr< Kernel< T, V >> kernel) |
Function for adding another subkernel to the composite kernel. 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 | |
std::vector< std::shared_ptr< Kernel< T, V > > > | children |
Additional Inherited Members | |
![]() | |
using | RET = decltype(std::declval< T >()+std::declval< V >()) |
Composite kernel which on evaluation adds the evaluation results of its subkernels.
|
inline |
Function for adding another subkernel to the composite kernel.
[in] | kernel | is the subkernel to be added |
|
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 |
Vector containing the subkernels