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

CPyramidChi2类参考


详细描述

Pyramid Kernel over Chi2 matched histograms.

在文件PyramidChi2.h28行定义。

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

所有成员的列表。

公有成员

 CPyramidChi2 (int32_t size, int32_t num_cells2, float64_t *weights_foreach_cell2, int32_t width_computation_type2, float64_t width2)
 CPyramidChi2 (CSimpleFeatures< float64_t > *l, CSimpleFeatures< float64_t > *r, int32_t size, int32_t num_cells2, float64_t *weights_foreach_cell2, int32_t width_computation_type2, float64_t width2)
virtual bool init (CFeatures *l, CFeatures *r)
virtual ~CPyramidChi2 ()
virtual void cleanup ()
virtual EKernelType get_kernel_type ()
virtual const char * get_name () const
virtual void setparams_pychi2 (int32_t num_cells2, float64_t *weights_foreach_cell2, int32_t width_computation_type2, float64_t width2)

保护成员

 CPyramidChi2 ()
virtual float64_t compute (int32_t idx_a, int32_t idx_b)

保护属性

int32_t num_cells
float64_tweights
int32_t width_computation_type
float64_t width
int32_t num_randfeats_forwidthcomputation

构造及析构函数文档

CPyramidChi2 ( int32_t  size,
int32_t  num_cells2,
float64_t weights_foreach_cell2,
int32_t  width_computation_type2,
float64_t  width2 
)

constructor

参数:
size cache size in MB
num_cells2 - the number of pyramid cells
weights_foreach_cell2 the vector of weights for each cell with which the Chi2 distance gets weighted
width_computation_type2 - 0 use the following parameter as fixed width, 1- use mean of inner distances in cases 1 and 2 the value of parameter width is still important, see parameter width2
width2 - in case of width_computation_type ==0 it is the width, in case of width_computation_type > 0 its value determines the how many random features are used for determining the width in case of width_computation_type > 0 set width2 <=1 to use all LEFT HAND SIDE features for width estimation

在文件PyramidChi2.cpp31行定义。

CPyramidChi2 ( CSimpleFeatures< float64_t > *  l,
CSimpleFeatures< float64_t > *  r,
int32_t  size,
int32_t  num_cells2,
float64_t weights_foreach_cell2,
int32_t  width_computation_type2,
float64_t  width2 
)

constructor

参数:
l features lhs convention: concatenated features along all cells, i.e. [feature for cell1, feature for cell2, ... feature for last cell] , the dimensionality of the base feature is equal to dividing the total feature length by the number ofcells
r features rhs the same convention as for param l applies here
size cache size
num_cells2 - the number of pyramid cells
weights_foreach_cell2 the vector of weights for each cell with which the Chi2 distance gets weighted
width_computation_type2 - 0 use the following parameter as fixed width, 1- use mean of inner distances in case 1 the value of parameter width is important!!!
width2 - in case of width_computation_type ==0 it is the width, in case of width_computation_type > 0 its value determines the how many random features are used for determining the width in case of width_computation_type > 0 set width2 <=1 to use all LEFT HAND SIDE features for width estimation

在文件PyramidChi2.cpp83行定义。

~CPyramidChi2 (  )  [virtual]

在文件PyramidChi2.cpp115行定义。

CPyramidChi2 (  )  [protected]

default constructor protected to avoid its usage

在文件PyramidChi2.cpp21行定义。


成员函数文档

void cleanup (  )  [virtual]

cleanup

重载CKernel

在文件PyramidChi2.cpp62行定义。

float64_t compute ( int32_t  idx_a,
int32_t  idx_b 
) [protected, virtual]

compute kernel function for features a and b

参数:
idx_a index of feature vector a
idx_b index of feature vector b
返回:
computed kernel function

实现了CKernel

在文件PyramidChi2.cpp122行定义。

virtual EKernelType get_kernel_type (  )  [virtual]

return what type of kernel we are Linear,Polynomial, Gaussian,...

实现了CKernel

在文件PyramidChi2.h90行定义。

virtual const char* get_name (  )  const [virtual]

return the name of a kernel

实现了CSGObject

在文件PyramidChi2.h96行定义。

bool init ( CFeatures l,
CFeatures r 
) [virtual]

init

参数:
l features lhs
r reatures rhs

重载CSimpleKernel< float64_t >

在文件PyramidChi2.cpp77行定义。

void setparams_pychi2 ( int32_t  num_cells2,
float64_t weights_foreach_cell2,
int32_t  width_computation_type2,
float64_t  width2 
) [virtual]

sets parameters, see also constructor

参数:
num_cells2 - the number of pyramid cells
weights_foreach_cell2 the vector of weights for each cell with which the Chi2 distance gets weighted
width_computation_type2 - 0 use the following parameter as fixed width, 1- use mean of inner distances in cases 1 and 2 the value of parameter width is still important, see parameter width2
width2 - in case of width_computation_type ==0 it is the width, in case of width_computation_type > 0 its value determines the how many random features are used for determining the width in case of width_computation_type > 0 set width2 <=1 to use all LEFT HAND SIDE features for width estimation

在文件PyramidChi2.cpp242行定义。


成员数据文档

int32_t num_cells [protected]

number of pyramidcells across all pyramidlevel

在文件PyramidChi2.h131行定义。

int32_t num_randfeats_forwidthcomputation [protected]

in case of adaptive width computation: how many features to use

在文件PyramidChi2.h141行定义。

float64_t* weights [protected]

vector of weights for each pyramid cell

在文件PyramidChi2.h134行定义。

float64_t width [protected]

width

在文件PyramidChi2.h139行定义。

int32_t width_computation_type [protected]

width_computation_type

在文件PyramidChi2.h137行定义。


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

SHOGUN Machine Learning Toolbox - Documentation