21 CFixedDegreeStringKernel::init()
66 bool free_avec, free_bvec;
75 for (int32_t i = 0; i<alen-
degree+1; i++)
79 for (int32_t j = i; j<i+degree && match; j++)
80 match = avec[j]==bvec[j];
CFixedDegreeStringKernel()
virtual bool set_normalizer(CKernelNormalizer *normalizer)
virtual bool init_normalizer()
CFeatures * rhs
feature vectors to occur on right hand side
float64_t compute(int32_t idx_a, int32_t idx_b)
all of classes and functions are contained in the shogun namespace
virtual ~CFixedDegreeStringKernel()
CFeatures * lhs
feature vectors to occur on left hand side
The class Features is the base class of all feature objects.
friend class CSqrtDiagKernelNormalizer
Template class StringKernel, is the base class of all String Kernels.