A helper class for some ECOC related procedures.
在文件 ECOCUtil.h 第 22 行定义.
静态 Public 成员函数 | |
template<typename T1 , typename T2 > | |
static int32_t | hamming_distance (T1 *c1, T2 *c2, int32_t len) |
|
static |
compute hamming distance.
code elements can be -1, +1 or 0, when 0 occurs, that position of code is not counted in the distance.
在文件 ECOCUtil.h 第 31 行定义.