SHOGUN v0.9.0
|
class RealDistance
在文件RealDistance.h第20行定义。
公有成员 | |
CRealDistance () | |
virtual bool | init (CFeatures *l, CFeatures *r) |
virtual EFeatureType | get_feature_type () |
virtual const char * | get_name (void) const |
virtual void | cleanup ()=0 |
virtual EDistanceType | get_distance_type ()=0 |
保护成员 | |
virtual float64_t | compute (int32_t x, int32_t y)=0 |
CRealDistance | ( | ) |
default constructor
在文件RealDistance.h第24行定义。
virtual void cleanup | ( | ) | [pure virtual] |
virtual float64_t compute | ( | int32_t | x, |
int32_t | y | ||
) | [protected, pure virtual] |
compute distance function for features a and b idx_{a,b} denote the index of the feature vectors in the corresponding feature object
实现了CDistance。
在CEuclidianDistance内被实现。
virtual EDistanceType get_distance_type | ( | ) | [pure virtual] |
get distance type we are
abstrace base method
实现了CSimpleDistance< float64_t >。
在CEuclidianDistance内被实现。
virtual EFeatureType get_feature_type | ( | ) | [virtual] |
get feature type the distance can deal with
重载CSimpleDistance< float64_t >。
在文件RealDistance.h第46行定义。
virtual const char* get_name | ( | void | ) | const [virtual] |
Returns the name of the SGSerializable instance. It MUST BE the CLASS NAME without the prefixed `C'.
重载CSimpleDistance< float64_t >。
在文件RealDistance.h第53行定义。
init distance
l | features of left-hand side |
r | features of right-hand side |
重载CSimpleDistance< float64_t >。
在文件RealDistance.h第32行定义。