SHOGUN v0.9.0
|
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) |
virtual const char * | get_name (void) const |
virtual CLabels * | classify ()=0 |
virtual CLabels * | classify (CFeatures *data)=0 |
静态保护成员 | |
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行定义。
virtual CLabels* classify | ( | ) | [pure virtual] |
classify objects using the currently set features
实现了CClassifier。
在CKNN、CHierarchical及CKMeans内被实现。
classify objects
data | (test)data to be classified |
实现了CClassifier。
在CKNN、CHierarchical及CKMeans内被实现。
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 | ( | ) |
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'.
实现了CSGObject。
被CKNN、CHierarchical及CKMeans重载。
在文件DistanceMachine.h第83行定义。
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第101行定义。