51 bool result=CDotKernel::init(l,r);
68 for (int32_t i=0; i<alen; i++)
76 result=exp(-result/
width);
94 "not of type CChi2Kernel!\n");
static CChi2Kernel * obtain_from_generic(CKernel *kernel)
virtual float64_t compute(int32_t idx_a, int32_t idx_b)
float64_t kernel(int32_t idx_a, int32_t idx_b)
The Chi2 kernel operating on realvalued vectors computes the chi-squared distance between sets of his...
virtual float64_t get_width()
Template class DotKernel is the base class for kernels working on DotFeatures.
virtual bool init_normalizer()
CFeatures * rhs
feature vectors to occur on right hand side
all of classes and functions are contained in the shogun namespace
virtual EKernelType get_kernel_type()=0
CFeatures * lhs
feature vectors to occur on left hand side
The class Features is the base class of all feature objects.