55 bool free_avec, free_bvec;
63 for (int32_t i=0; i<alen; i++)
64 sum+= (avec[i]==bvec[i]) ? 1 : 0;
72 void CMatchWordStringKernel::init()
virtual float64_t compute(int32_t idx_a, int32_t idx_b)
friend class CAvgDiagKernelNormalizer
virtual bool set_normalizer(CKernelNormalizer *normalizer)
virtual bool init_normalizer()
virtual ~CMatchWordStringKernel()
virtual bool init(CFeatures *l, CFeatures *r)
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.
Template class StringKernel, is the base class of all String Kernels.
static int32_t pow(bool x, int32_t n)