A helper class for some ECOC related procedures.
Definition at line 20 of file ECOCUtil.h.
Static Public Member Functions | |
| template<typename T1 , typename T2 > | |
| static int32_t | hamming_distance (T1 *c1, T2 *c2, int32_t len) |
| 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.
Definition at line 29 of file ECOCUtil.h.