CAvgDiagKernelNormalizer类参考


详细描述

Normalize the kernel by either a constant or the average value of the diagonal elements (depending on argument c of the constructor).

In case c <= 0 compute scale as

\[ \mbox{scale} = \frac{1}{N}\sum_{i=1}^N k(x_i,x_i) \]

otherwise use scale=c and normalize the kernel via

\[ k'(x,x')= \frac{k(x,x')}{scale} \]

在文件AvgDiagKernelNormalizer.h31行定义。

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

所有成员的列表。

公有成员

 CAvgDiagKernelNormalizer (float64_t c=0.0)
virtual ~CAvgDiagKernelNormalizer ()
virtual bool init (CKernel *k)
virtual float64_t normalize (float64_t value, int32_t idx_lhs, int32_t idx_rhs)
virtual float64_t normalize_lhs (float64_t value, int32_t idx_lhs)
virtual float64_t normalize_rhs (float64_t value, int32_t idx_rhs)
virtual const char * get_name () const

保护属性

float64_t scale
 the constant scaling factor (avg of diagonal or user given const)

构造及析构函数文档

constructor

参数:
c scale parameter, if <= 0 scaling will be computed from the avg of the kernel diagonal elements

在文件AvgDiagKernelNormalizer.h39行定义。

virtual ~CAvgDiagKernelNormalizer (  )  [virtual]

default destructor

在文件AvgDiagKernelNormalizer.h45行定义。


成员函数文档

virtual const char* get_name (  )  const [virtual]
返回:
object name

实现了CSGObject

在文件AvgDiagKernelNormalizer.h106行定义。

virtual bool init ( CKernel k  )  [virtual]

initialization of the normalizer (if needed)

参数:
k kernel

实现了CKernelNormalizer

在文件AvgDiagKernelNormalizer.h51行定义。

virtual float64_t normalize ( float64_t  value,
int32_t  idx_lhs,
int32_t  idx_rhs 
) [virtual]

normalize the kernel value

参数:
value kernel value
idx_lhs index of left hand side vector
idx_rhs index of right hand side vector

实现了CKernelNormalizer

在文件AvgDiagKernelNormalizer.h81行定义。

virtual float64_t normalize_lhs ( float64_t  value,
int32_t  idx_lhs 
) [virtual]

normalize only the left hand side vector

参数:
value value of a component of the left hand side feature vector
idx_lhs index of left hand side vector

实现了CKernelNormalizer

在文件AvgDiagKernelNormalizer.h91行定义。

virtual float64_t normalize_rhs ( float64_t  value,
int32_t  idx_rhs 
) [virtual]

normalize only the right hand side vector

参数:
value value of a component of the right hand side feature vector
idx_rhs index of right hand side vector

实现了CKernelNormalizer

在文件AvgDiagKernelNormalizer.h100行定义。


成员数据文档

float64_t scale [protected]

the constant scaling factor (avg of diagonal or user given const)

在文件AvgDiagKernelNormalizer.h110行定义。


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

SHOGUN Machine Learning Toolbox - Documentation