A generic DistanceMachine interface.
A distance machine is based on a a-priori choosen distance.
在文件DistanceMachine.h第32行定义。

公有成员 | |
| CDistanceMachine () | |
| virtual | ~CDistanceMachine () |
| void | set_distance (CDistance *d) |
| CDistance * | get_distance () |
| void | distances_lhs (float64_t *result, int32_t idx_a1, int32_t idx_a2, int32_t idx_b) |
| void | distances_rhs (float64_t *result, int32_t idx_b1, int32_t idx_b2, int32_t idx_a) |
静态保护成员 | |
| static void * | run_distance_thread_lhs (void *p) |
| static void * | run_distance_thread_rhs (void *p) |
保护属性 | |
| CDistance * | distance |
| CDistanceMachine | ( | ) |
default constructor
在文件DistanceMachine.cpp第27行定义。
| ~CDistanceMachine | ( | ) | [virtual] |
在文件DistanceMachine.cpp第32行定义。
| void distances_lhs | ( | float64_t * | result, | |
| int32_t | idx_a1, | |||
| int32_t | idx_a2, | |||
| int32_t | idx_b | |||
| ) |
get distance functions for lhs feature vectors going from a1 to a2 and rhs feature vector b
| result | array of distance values | |
| idx_a1 | first feature vector a1 at idx_a1 | |
| idx_a2 | last feature vector a2 at idx_a2 | |
| idx_b | feature vector b at idx_b |
在文件DistanceMachine.cpp第37行定义。
| void distances_rhs | ( | float64_t * | result, | |
| int32_t | idx_b1, | |||
| int32_t | idx_b2, | |||
| int32_t | idx_a | |||
| ) |
get distance functions for rhs feature vectors going from b1 to b2 and lhs feature vector a
| result | array of distance values | |
| idx_b1 | first feature vector a1 at idx_b1 | |
| idx_b2 | last feature vector a2 at idx_b2 | |
| idx_a | feature vector a at idx_a |
在文件DistanceMachine.cpp第99行定义。
| CDistance* get_distance | ( | ) |
| void * run_distance_thread_lhs | ( | void * | p | ) | [static, protected] |
| void * run_distance_thread_rhs | ( | void * | p | ) | [static, protected] |
| void set_distance | ( | CDistance * | d | ) |
the distance
在文件DistanceMachine.h第80行定义。