42 bool result=CDotKernel::init(l,r);
61 for (int32_t i=0; i<alen; i++) {
69 result += 0.5*(a_i + b_i);
Template class DotKernel is the base class for kernels working on DotFeatures.
virtual bool init(CFeatures *l, CFeatures *r)
virtual bool init_normalizer()
virtual float64_t compute(int32_t idx_a, int32_t idx_b)
CFeatures * rhs
feature vectors to occur on right hand side
all of classes and functions are contained in the shogun namespace
static float64_t log2(float64_t v)
log10(x), x being a complex128_t
CFeatures * lhs
feature vectors to occur on left hand side
The class Features is the base class of all feature objects.
virtual ~CJensenShannonKernel()