class ManhattanWordDistance
在文件ManhattanWordDistance.h第23行定义。
公有成员 | |
CManhattanWordDistance () | |
CManhattanWordDistance (CStringFeatures< uint16_t > *l, CStringFeatures< uint16_t > *r) | |
virtual | ~CManhattanWordDistance () |
virtual bool | init (CFeatures *l, CFeatures *r) |
virtual void | cleanup () |
virtual EDistanceType | get_distance_type () |
virtual const char * | get_name () const |
void | get_dictionary (int32_t &dsize, float64_t *&dweights) |
保护成员 | |
float64_t | compute (int32_t idx_a, int32_t idx_b) |
保护属性 | |
int32_t | dictionary_size |
float64_t * | dictionary_weights |
default constructor
在文件ManhattanWordDistance.cpp第20行定义。
CManhattanWordDistance | ( | CStringFeatures< uint16_t > * | l, | |
CStringFeatures< uint16_t > * | r | |||
) |
constructor
l | features of left-hand side | |
r | features of right-hand side |
在文件ManhattanWordDistance.cpp第29行定义。
~CManhattanWordDistance | ( | ) | [virtual] |
在文件ManhattanWordDistance.cpp第41行定义。
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。
在文件ManhattanWordDistance.cpp第58行定义。
void get_dictionary | ( | int32_t & | dsize, | |
float64_t *& | dweights | |||
) |
get dictionary weights
dsize | size of the dictionary | |
dweights | dictionary weights are stored in here |
在文件ManhattanWordDistance.h第65行定义。
virtual EDistanceType get_distance_type | ( | ) | [virtual] |
get distance type we are
实现了CDistance。
在文件ManhattanWordDistance.h第52行定义。
virtual const char* get_name | ( | ) | const [virtual] |
init distance
l | features of left-hand side | |
r | features of right-hand side |
重载CStringDistance< uint16_t >。
在文件ManhattanWordDistance.cpp第48行定义。
int32_t dictionary_size [protected] |
size of the dictionary
在文件ManhattanWordDistance.h第79行定义。
float64_t* dictionary_weights [protected] |
dictionary weights
在文件ManhattanWordDistance.h第81行定义。