46 bool result=CDotKernel::init(l,r);
68 for (int32_t i=0; i<alen; i++)
69 result += (avec[i] < bvec[i]) ? avec[i] : bvec[i];
74 for (int32_t i=0; i<alen; i++)
virtual ~CHistogramIntersectionKernel()
Template class DotKernel is the base class for kernels working on DotFeatures.
virtual float64_t compute(int32_t idx_a, int32_t idx_b)
float64_t m_beta
beta parameter
virtual bool init_normalizer()
virtual bool init(CFeatures *l, CFeatures *r)
CHistogramIntersectionKernel()
CFeatures * rhs
feature vectors to occur on right hand side
all of classes and functions are contained in the shogun namespace
CFeatures * lhs
feature vectors to occur on left hand side
The class Features is the base class of all feature objects.
static int32_t pow(bool x, int32_t n)
virtual void register_params()