VLFeat - Documentation > C API

# VLFeat.org

Documentation> C API

- Main Page
- Related Pages
- Data Structures
- Files

- File List
- Globals

Functions
ikmeans_elkan.tc File Reference

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

`#include "mathop.h"`

## Functions

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. More...
static int | vl_ikm_train_elkan (VlIKMFilt *f, vl_uint8 const *data, vl_size N)
| Elkan algorithm. More...
static void | vl_ikm_push_elkan (VlIKMFilt *f, vl_uint32 *asgn, vl_uint8 const *data, vl_size N)
| Elkan algorithm. More...

## Detailed Description

Author
  Andrea Vedaldi

## Function Documentation

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

  f | filter.

static void vl_ikm_push_elkan | ( | VlIKMFilt * | f,
|  | vl_uint32 * | asgn,
|  | vl_uint8 const * | data,
|  | vl_size | N
| ) |  |

static

Parameters

  f | IKM quantizer.
  asgn | Assignment of data to centers (out).
  data | Data to quantize.
  N | Number of data elements.

static int vl_ikm_train_elkan | ( | VlIKMFilt * | f,
|  | vl_uint8 const * | data,
|  | vl_size | N
| ) |  |

static

Parameters

  f | IKM quantizer.
  data | Data to quantize.
  N | Number of data elements.