18 using namespace shogun;
59 for (int32_t i=0; i<alen; i++)
61 absTmp=0.5*(avec[i]+bvec[i]);
65 result+=avec[i]*log(avec[i]/absTmp);
67 result+=bvec[i]*log(bvec[i]/absTmp);
template class SimpleDistance
virtual float64_t compute(int32_t idx_a, int32_t idx_b)
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