class HammingWordDistance
在文件HammingWordDistance.h第25行定义。
公有成员 | |
CHammingWordDistance (bool use_sign) | |
CHammingWordDistance (CStringFeatures< uint16_t > *l, CStringFeatures< uint16_t > *r, bool use_sign) | |
virtual | ~CHammingWordDistance () |
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 |
bool | use_sign |
CHammingWordDistance | ( | bool | use_sign | ) |
CHammingWordDistance | ( | CStringFeatures< uint16_t > * | l, | |
CStringFeatures< uint16_t > * | r, | |||
bool | use_sign | |||
) |
constructor
l | features of left-hand side | |
r | features of right-hand side | |
use_sign | if sign shall be used |
在文件HammingWordDistance.cpp第29行定义。
~CHammingWordDistance | ( | ) | [virtual] |
在文件HammingWordDistance.cpp第41行定义。
void cleanup | ( | ) | [virtual] |
float64_t compute | ( | int32_t | idx_a, | |
int32_t | idx_b | |||
) | [protected, virtual] |
compute kernel function for features a and b idx_{a,b} denote the index of the feature vectors in the corresponding feature object
实现了CDistance。
在文件HammingWordDistance.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 |
在文件HammingWordDistance.h第71行定义。
virtual EDistanceType get_distance_type | ( | ) | [virtual] |
virtual const char* get_name | ( | ) | const [virtual] |
init distance
l | features of left-hand side | |
r | features of right-hand side |
重载CStringDistance< uint16_t >。
在文件HammingWordDistance.cpp第48行定义。
int32_t dictionary_size [protected] |
size of the dictionary
在文件HammingWordDistance.h第85行定义。
float64_t* dictionary_weights [protected] |
dictionary weights
在文件HammingWordDistance.h第87行定义。
bool use_sign [protected] |
if sign shall be used
在文件HammingWordDistance.h第89行定义。