TanimotoKernelNormalizer performs kernel normalization inspired by the Tanimoto coefficient (see http://en.wikipedia.org/wiki/Jaccard_index )
在文件TanimotoKernelNormalizer.h第26行定义。
公有成员 | |
CTanimotoKernelNormalizer (bool use_opt_diag=false) | |
virtual | ~CTanimotoKernelNormalizer () |
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) |
bool | alloc_and_compute_diag (CKernel *k, float64_t *&v, int32_t num) |
保护属性 | |
float64_t * | diag_lhs |
float64_t * | diag_rhs |
bool | use_optimized_diagonal_computation |
CTanimotoKernelNormalizer | ( | bool | use_opt_diag = false ) |
default constructor
use_opt_diag | - some kernels support faster diagonal compuation via compute_diag(idx), this flag enables this |
在文件TanimotoKernelNormalizer.h第33行定义。
virtual ~CTanimotoKernelNormalizer | ( | ) | [virtual] |
default destructor
在文件TanimotoKernelNormalizer.h第39行定义。
alloc and compute the vector containing the square root of the diagonal elements of this kernel.
在文件TanimotoKernelNormalizer.h第109行定义。
virtual bool init | ( | CKernel * | k ) | [virtual] |
normalize the kernel value
value | kernel value |
idx_lhs | index of left hand side vector |
idx_rhs | index of right hand side vector |
在文件TanimotoKernelNormalizer.h第77行定义。
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 |
在文件TanimotoKernelNormalizer.h第88行定义。
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 |
在文件TanimotoKernelNormalizer.h第98行定义。
diagonal left-hand side
在文件TanimotoKernelNormalizer.h第135行定义。
diagonal right-hand side
在文件TanimotoKernelNormalizer.h第137行定义。
bool use_optimized_diagonal_computation [protected] |
flat if optimized diagonal computation is used
在文件TanimotoKernelNormalizer.h第139行定义。