Documentation - C API
ikmeans_elkan.tc File Reference

Integer K-Means - Elkan Algorithm - Definition. More...

Functions

static unsigned long isqrt (unsigned long val)
static void vl_ikm_elkan_update_inter_dist (VlIKMFilt *f)
static void vl_ikm_init_elkan (VlIKMFilt *f)
 Helper function to initialize filter for Triangle algorithm.
static int vl_ikm_train_elkan (VlIKMFilt *f, vl_uint8 const *data, int N)
 Elkan algorithm.
static void vl_ikm_push_elkan (VlIKMFilt *f, vl_uint *asgn, vl_uint8 const *data, int N)
 Elkan algorithm.

Detailed Description

Author:
Andrea Vedaldi

Function Documentation

static unsigned long isqrt ( unsigned long  val)
static

Square root of an integer value

Author:
Jim Ulery
static void vl_ikm_elkan_update_inter_dist ( VlIKMFilt f)
static

Update inter cluster distance table.

static void vl_ikm_init_elkan ( VlIKMFilt f)
static
Parameters:
ffilter.
static void vl_ikm_push_elkan ( VlIKMFilt f,
vl_uint asgn,
vl_uint8 const *  data,
int  N 
)
static
Parameters:
fIKM quantizer.
asgnAssignment of data to centers (out).
dataData to quantize.
NNumber of data elements.
static int vl_ikm_train_elkan ( VlIKMFilt f,
vl_uint8 const *  data,
int  N 
)
static
Parameters:
fIKM quantizer.
dataData to quantize.
NNumber of data elements.