SHOGUN v0.9.0
|
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) |
virtual const char * | get_name (void) const |
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第40行定义。
alloc and compute the vector containing the square root of the diagonal elements of this kernel.
在文件TanimotoKernelNormalizer.h第118行定义。
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'.
实现了CSGObject。
在文件TanimotoKernelNormalizer.h第110行定义。
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第78行定义。
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第89行定义。
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第99行定义。
diagonal left-hand side
在文件TanimotoKernelNormalizer.h第144行定义。
diagonal right-hand side
在文件TanimotoKernelNormalizer.h第146行定义。
bool use_optimized_diagonal_computation [protected] |
flat if optimized diagonal computation is used
在文件TanimotoKernelNormalizer.h第148行定义。