37 CRealDistance::init(l, r);
52 get_feature_vector(idx_a, alen, afree);
54 get_feature_vector(idx_b, blen, bfree);
57 for (int32_t i=0; i<alen; i++)
69 void CAttenuatedEuclideanDistance::init()
virtual ~CAttenuatedEuclideanDistance()
virtual bool init(CFeatures *l, CFeatures *r)
void add(bool *param, const char *name, const char *description="")
virtual float64_t compute(int32_t idx_a, int32_t idx_b)
all of classes and functions are contained in the shogun namespace
CFeatures * lhs
feature vectors to occur on the left hand side
The class Features is the base class of all feature objects.
CFeatures * rhs
feature vectors to occur on the right hand side
CAttenuatedEuclideanDistance()
static float32_t sqrt(float32_t x)
static int32_t pow(bool x, int32_t n)