29 for (int32_t i=0; i < codebook.
num_cols; ++i)
48 for (int32_t i=0; i < codebook.
num_rows && the_same; ++i)
49 for (int32_t j=0; j < codebook.
num_cols && the_same; ++j)
59 for (int32_t i=0; i < codebook.
num_cols; ++i)
61 for (int32_t j=i+1; j < codebook.
num_cols; ++j)
static int32_t arg_max(T *vec, int32_t inc, int32_t len, T *maxv_ptr=NULL)
SGMatrix< float64_t > m_delta
static int32_t hamming_distance(T1 *c1, T2 *c2, int32_t len)
SGMatrix< int32_t > m_codebook
SGVector< float64_t > binarize(const SGVector< float64_t > query)
T * get_column_vector(index_t col) const
virtual int32_t decide_label(const SGVector< float64_t > outputs, const SGMatrix< int32_t > codebook)
all of classes and functions are contained in the shogun namespace
void update_delta_cache(const SGMatrix< int32_t > codebook)