61 int32_t i, alen, blen ;
62 bool free_avec, free_bvec;
71 for (i = 0; i<alen; i++)
72 result+=(avec[i]==bvec[i]) ? 0:4;
74 result=exp(-result/
width);
CGaussianMatchStringKernel()
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
virtual float64_t compute(int32_t idx_a, int32_t idx_b)
CFeatures * lhs
feature vectors to occur on left hand side
The class Features is the base class of all feature objects.
virtual bool init(CFeatures *l, CFeatures *r)
friend class CSqrtDiagKernelNormalizer
virtual void register_params()
Template class StringKernel, is the base class of all String Kernels.
virtual ~CGaussianMatchStringKernel()