12 #ifndef _EUCLIDEANDISTANCE_H__
13 #define _EUCLIDEANDISTANCE_H__
23 template <
typename T>
class SGVector;
107 virtual const char*
get_name()
const {
return "EuclideanDistance"; }
194 void register_params();
virtual CFeatures * replace_rhs(CFeatures *rhs)
virtual const char * get_name() const
virtual void reset_precompute()
Class Distance, a base class for all the distances used in the Shogun toolbox.
Features that support dot products among other operations.
EFeatureClass
shogun feature class
virtual float64_t compute(int32_t idx_a, int32_t idx_b)
virtual float64_t distance_upper_bounded(int32_t idx_a, int32_t idx_b, float64_t upper_bound)
virtual CFeatures * replace_lhs(CFeatures *lhs)
virtual void set_disable_sqrt(bool state)
virtual EDistanceType get_distance_type()
virtual bool init(CFeatures *l, CFeatures *r)
virtual void precompute_lhs()
EFeatureType
shogun feature type
all of classes and functions are contained in the shogun namespace
SGVector< float64_t > m_lhs_squared_norms
virtual bool get_disable_sqrt()
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 void precompute_rhs()
virtual ~CEuclideanDistance()
virtual EFeatureClass get_feature_class()
SGVector< float64_t > m_rhs_squared_norms
virtual EFeatureType get_feature_type()