SHOGUN v0.9.0
|
class CanberraWordDistance
在文件CanberraWordDistance.h第23行定义。
公有成员 | |
CCanberraWordDistance () | |
CCanberraWordDistance (CStringFeatures< uint16_t > *l, CStringFeatures< uint16_t > *r) | |
virtual | ~CCanberraWordDistance () |
virtual bool | init (CFeatures *l, CFeatures *r) |
virtual void | cleanup () |
virtual EDistanceType | get_distance_type () |
virtual const char * | get_name () const |
保护成员 | |
float64_t | compute (int32_t idx_a, int32_t idx_b) |
default constructor
在文件CanberraWordDistance.cpp第20行定义。
CCanberraWordDistance | ( | CStringFeatures< uint16_t > * | l, |
CStringFeatures< uint16_t > * | r | ||
) |
constructor
l | features of left-hand side |
r | features of right-hand side |
在文件CanberraWordDistance.cpp第26行定义。
~CCanberraWordDistance | ( | ) | [virtual] |
在文件CanberraWordDistance.cpp第35行定义。
void cleanup | ( | ) | [virtual] |
float64_t compute | ( | int32_t | idx_a, |
int32_t | idx_b | ||
) | [protected, 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。
在文件CanberraWordDistance.cpp第49行定义。
virtual EDistanceType get_distance_type | ( | ) | [virtual] |
get distance type we are
实现了CStringDistance< uint16_t >。
在文件CanberraWordDistance.h第52行定义。
virtual const char* get_name | ( | void | ) | const [virtual] |
get name of the distance
重载CStringDistance< uint16_t >。
在文件CanberraWordDistance.h第58行定义。
init distance
l | features of left-hand side |
r | features of right-hand side |
重载CStringDistance< uint16_t >。
在文件CanberraWordDistance.cpp第40行定义。