SHOGUN  4.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
List of all members | Static Public Member Functions
CECOCUtil Class Reference

Detailed Description

A helper class for some ECOC related procedures.

Definition at line 22 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)
 

Member Function Documentation

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 31 of file ECOCUtil.h.


The documentation for this class was generated from the following file:

SHOGUN Machine Learning Toolbox - Documentation