66 bool free_avec, free_bvec;
75 for (int32_t i=0; i<alen; i++)
76 sum+= (avec[i]==bvec[i]) ? 1 : 0;
83 for (int32_t j=1; j<
degree; j++)
91 void CPolyMatchWordStringKernel::init()
CPolyMatchWordStringKernel()
virtual bool set_normalizer(CKernelNormalizer *normalizer)
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
CFeatures * lhs
feature vectors to occur on left hand side
The class Features is the base class of all feature objects.
virtual float64_t compute(int32_t idx_a, int32_t idx_b)
friend class CSqrtDiagKernelNormalizer
Template class StringKernel, is the base class of all String Kernels.
virtual ~CPolyMatchWordStringKernel()
virtual bool init(CFeatures *l, CFeatures *r)