11 #ifndef _SPARSEDISTANCE_H___
12 #define _SPARSEDISTANCE_H___
45 SG_ERROR(
"train or test features #dimension mismatch (l:%d vs. r:%d)\n",
69 return "SparseDistance"; }
Class Distance, a base class for all the distances used in the Shogun toolbox.
template class SparseDistance
virtual EFeatureClass get_feature_class()
Template class SparseFeatures implements sparse matrices.
virtual const char * get_name() const
EFeatureClass
shogun feature class
virtual bool init(CFeatures *l, CFeatures *r)
virtual EFeatureType get_feature_type()
virtual EFeatureClass get_feature_class() const =0
virtual EDistanceType get_distance_type()=0
EFeatureType
shogun feature type
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
virtual EFeatureType get_feature_type() const =0