SHOGUN v0.9.0
公有成员 | 静态保护成员 | 保护属性
CDistanceMachine类参考

详细描述

A generic DistanceMachine interface.

A distance machine is based on a a-priori choosen distance.

在文件DistanceMachine.h32行定义。

继承图,类CDistanceMachine
Inheritance graph
[图例]

所有成员的列表。

公有成员

 CDistanceMachine ()
virtual ~CDistanceMachine ()
void set_distance (CDistance *d)
CDistanceget_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 CLabelsclassify ()=0
virtual CLabelsclassify (CFeatures *data)=0

静态保护成员

static void * run_distance_thread_lhs (void *p)
static void * run_distance_thread_rhs (void *p)

保护属性

CDistancedistance

构造及析构函数文档

default constructor

在文件DistanceMachine.cpp27行定义。

~CDistanceMachine ( ) [virtual]

在文件DistanceMachine.cpp32行定义。


成员函数文档

virtual CLabels* classify ( ) [pure virtual]

classify objects using the currently set features

返回:
classified labels

实现了CClassifier

CKNNCHierarchicalCKMeans内被实现。

virtual CLabels* classify ( CFeatures data) [pure virtual]

classify objects

参数:
data(test)data to be classified
返回:
classified labels

实现了CClassifier

CKNNCHierarchicalCKMeans内被实现。

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

参数:
resultarray of distance values
idx_a1first feature vector a1 at idx_a1
idx_a2last feature vector a2 at idx_a2
idx_bfeature vector b at idx_b

在文件DistanceMachine.cpp37行定义。

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

参数:
resultarray of distance values
idx_b1first feature vector a1 at idx_b1
idx_b2last feature vector a2 at idx_b2
idx_afeature vector a at idx_a

在文件DistanceMachine.cpp99行定义。

CDistance* get_distance ( )

get distance

返回:
distance

在文件DistanceMachine.h54行定义。

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'.

返回:
name of the SGSerializable

实现了CSGObject

CKNNCHierarchicalCKMeans重载。

在文件DistanceMachine.h83行定义。

void * run_distance_thread_lhs ( void *  p) [static, protected]

pthread function for compute distance values

参数:
pthread parameter

在文件DistanceMachine.cpp161行定义。

void * run_distance_thread_rhs ( void *  p) [static, protected]

pthread function for compute distance values

参数:
pthread parameter

在文件DistanceMachine.cpp177行定义。

void set_distance ( CDistance d)

set distance

参数:
ddistance to set

在文件DistanceMachine.h43行定义。


成员数据文档

CDistance* distance [protected]

the distance

在文件DistanceMachine.h101行定义。


该类的文档由以下文件生成:

SHOGUN Machine Learning Toolbox - Documentation