- Main Page
- Data Structures
- Files
- Related Pages

# ikmeans_init.tc File Reference

Integer K-Means - Initialization - Definition. More...

## Functions
static void | alloc (VlIKMFilt *f, int M, int K)
| Helper function to allocate memory for an IKM quantizer.
static void | vl_ikm_init_helper (VlIKMFilt *f)
| Helper function to initialize the quantizer.
void | vl_ikm_init (VlIKMFilt *f, vl_ikm_acc const *centers, int M, int K)
| Inintialize quantizer with centers.
void | vl_ikm_init_rand (VlIKMFilt *f, int M, int K)
| Inintialize quantizer with random centers.
void | vl_ikm_init_rand_data (VlIKMFilt *f, vl_ikm_data const *data, int M, int N, int K)
| Inintialize with centers from random data.

## Detailed Description

For internal use only.

Author:
  Andrea Vedaldi

## Function Documentation

static void alloc | ( | VlIKMFilt * | f,
|  | int | M,
|  | int | K |
| ) |  |  | `[static]`

For internal use only.

Parameters:

  | f | quantizer.
  | M | data dimensionality.
  | K | number of clusters.

void vl_ikm_init | ( | VlIKMFilt * | f,
|  | vl_ikm_acc const * | centers,
|  | int | M,
|  | int | K |
| ) |  |  |

Parameters:

  | f | IKM quantizer.
  | centers | centers.
  | M | data dimensionality.
  | K | number of clusters.

static void vl_ikm_init_helper | ( | VlIKMFilt * | f | ) | `[static]`

Parameters:

  | f | IKM quantizer.

void vl_ikm_init_rand | ( | VlIKMFilt * | f,
|  | int | M,
|  | int | K |
| ) |  |  |

Parameters:

  | f | IKM quantizer.
  | M | data dimensionality.
  | K | number of clusters.

void vl_ikm_init_rand_data | ( | VlIKMFilt * | f,
|  | vl_ikm_data const * | data,
|  | int | M,
|  | int | N,
|  | int | K |
| ) |  |  |

Parameters:

  | f | IKM quantizer.
  | data | data.
  | M | data dimensionality.
  | N | number of data.
  | K | number of clusters.