18 using namespace shogun;
62 for (int32_t i=0; i<alen; i++)
64 s1+=fabs(avec[i]-bvec[i]);
65 s2+=fabs(avec[i]+bvec[i]);
virtual float64_t compute(int32_t idx_a, int32_t idx_b)
virtual ~CBrayCurtisDistance()
template class SimpleDistance
virtual bool init(CFeatures *l, CFeatures *r)
CFeatures * lhs
feature vectors to occur on left hand side
The class Features is the base class of all feature objects.
CFeatures * rhs
feature vectors to occur on right hand side