18 using namespace shogun;
58 for (int32_t i=0; i<alen; i++)
59 result=
CMath::max(result, fabs(avec[i]-bvec[i]));
virtual ~CChebyshewMetric()
virtual float64_t compute(int32_t idx_a, int32_t idx_b)
virtual bool init(CFeatures *l, CFeatures *r)
template class SimpleDistance
static T max(T a, T b)
return the maximum of two integers
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