11 #ifndef _SPARSEDISTANCE_H___
12 #define _SPARSEDISTANCE_H___
43 SG_ERROR(
"train or test features #dimension mismatch (l:%d vs. r:%d)\n",
67 return "SparseDistance"; }
Class Distance, a base class for all the distances used in the Shogun toolbox.
virtual EFeatureType get_feature_type()=0
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 EFeatureClass get_feature_class()=0
virtual EFeatureType get_feature_type()
virtual EDistanceType get_distance_type()=0
EFeatureType
shogun feature type
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