65 int32_t i, alen, blen, sum;
66 bool free_avec, free_bvec;
87 void CPolyMatchStringKernel::init()
98 "True to rescale kernel with string length.",
MS_AVAILABLE);
virtual bool set_normalizer(CKernelNormalizer *normalizer)
virtual float64_t compute(int32_t idx_a, int32_t idx_b)
virtual bool init(CFeatures *l, CFeatures *r)
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 ~CPolyMatchStringKernel()
friend class CSqrtDiagKernelNormalizer
Template class StringKernel, is the base class of all String Kernels.
static int32_t pow(bool x, int32_t n)