62 return CDistance::init(l,r);
68 return exp(-result/width);
71 void CKernelDistance::init()
virtual bool init(CFeatures *lhs, CFeatures *rhs)
Class Distance, a base class for all the distances used in the Shogun toolbox.
virtual ~CKernelDistance()
float64_t kernel(int32_t idx_a, int32_t idx_b)
float64_t compute(int32_t idx_a, int32_t idx_b)
void add(bool *param, const char *name, const char *description="")
Class SGObject is the base class of all shogun objects.
all of classes and functions are contained in the shogun namespace
The class Features is the base class of all feature objects.
virtual bool init(CFeatures *l, CFeatures *r)