48 #ifndef __KERNEL_FUNCTION_H__ 49 #define __KERNEL_FUNCTION_H__ 51 #include "algorithms/algorithm.h" 52 #include "data_management/data/numeric_table.h" 53 #include "algorithms/kernel_function/kernel_function_types.h" 59 namespace kernel_function
73 class KernelIface :
public daal::algorithms::Analysis<batch>
76 typedef algorithms::kernel_function::Input InputType;
77 typedef algorithms::kernel_function::ParameterBase ParameterType;
78 typedef algorithms::kernel_function::Result ResultType;
91 KernelIface(
const KernelIface &other)
100 virtual Input * getInput() = 0;
106 virtual ParameterBase * getParameter() = 0;
108 virtual ~KernelIface() {}
114 ResultPtr getResult()
123 services::Status setResult(
const ResultPtr& res)
125 DAAL_CHECK(res, services::ErrorNullResult)
127 _res = _result.get();
128 return services::Status();
136 services::SharedPtr<KernelIface> clone()
const 138 return services::SharedPtr<KernelIface>(cloneImpl());
144 _result = ResultPtr(
new kernel_function::Result());
146 virtual KernelIface * cloneImpl()
const DAAL_C11_OVERRIDE = 0;
149 typedef services::SharedPtr<KernelIface> KernelIfacePtr;
152 using interface1::KernelIface;
153 using interface1::KernelIfacePtr;
daal::services::interface1::Status
Class that holds the results of API calls. In case of API routine failure it contains the list of err...
Definition: error_handling.h:491
daal
Definition: algorithm_base_common.h:57
daal::algorithms::kernel_function::interface1::Result
Results obtained with the compute() method of the kernel function algorithm in the batch processing m...
Definition: kernel_function_types.h:159
daal::algorithms::kernel_function::interface1::KernelIface::clone
services::SharedPtr< KernelIface > clone() const
Definition: kernel_function.h:136
daal::algorithms::kernel_function::interface1::ParameterBase
Optional input objects for the kernel function algorithm.
Definition: kernel_function_types.h:112
daal::algorithms::kernel_function::interface1::KernelIface::getInput
virtual Input * getInput()=0
daal::services::interface1::SharedPtr
Shared pointer that retains shared ownership of an object through a pointer. Several SharedPtr object...
Definition: daal_shared_ptr.h:187
daal::services::interface1::SharedPtr::get
T * get() const
Definition: daal_shared_ptr.h:332
daal::algorithms::kernel_function::interface1::KernelIface
Abstract class that specifies the interface of the algorithms for computing kernel functions in the b...
Definition: kernel_function.h:73
daal::algorithms::kernel_function::interface1::KernelIface::getParameter
virtual ParameterBase * getParameter()=0
daal::algorithms::kernel_function::interface1::KernelIface::setResult
services::Status setResult(const ResultPtr &res)
Definition: kernel_function.h:123
daal::algorithms::Analysis
Provides methods for execution of operations over data, such as computation of Summary Statistics est...
Definition: analysis.h:94
daal::services::ErrorNullResult
Definition: error_indexes.h:122
daal::algorithms::kernel_function::interface1::KernelIface::KernelIface
KernelIface(const KernelIface &other)
Definition: kernel_function.h:91
daal::algorithms::kernel_function::interface1::KernelIface::getResult
ResultPtr getResult()
Definition: kernel_function.h:114