公有成员 | 静态保护成员 | 保护属性

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)

静态保护成员

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行定义。


成员函数文档

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

参数:
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.cpp99行定义。

CDistance* get_distance (  ) 

get distance

返回:
distance

在文件DistanceMachine.h54行定义。

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

pthread function for compute distance values

参数:
p thread parameter

在文件DistanceMachine.cpp161行定义。

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

pthread function for compute distance values

参数:
p thread parameter

在文件DistanceMachine.cpp177行定义。

void set_distance ( CDistance d  ) 

set distance

参数:
d distance to set

在文件DistanceMachine.h43行定义。


成员数据文档

CDistance* distance [protected]

the distance

在文件DistanceMachine.h80行定义。


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

SHOGUN Machine Learning Toolbox - Documentation