Hierarchical Integer K-Means Clustering - Declaration. More...
Go to the source code of this file.
Functions | |
vl_uint8 * | vl_hikm_copy_subset (vl_uint8 const *data, vl_uint32 *ids, vl_size N, vl_size M, vl_uint32 id, vl_size *N2) |
void | vl_hikm_delete (VlHIKMTree *f) |
Delete HIKM tree. | |
vl_size | vl_hikm_get_depth (VlHIKMTree const *f) |
Get depth. | |
vl_size | vl_hikm_get_K (VlHIKMTree const *f) |
Get K. | |
vl_size | vl_hikm_get_max_niters (VlHIKMTree const *f) |
Get maximum number of iterations. | |
vl_size | vl_hikm_get_ndims (VlHIKMTree const *f) |
Get data dimensionality. | |
VlHIKMNode const * | vl_hikm_get_root (VlHIKMTree const *f) |
Get maximum number of iterations. | |
int | vl_hikm_get_verbosity (VlHIKMTree const *f) |
Get verbosity level. | |
void | vl_hikm_init (VlHIKMTree *f, vl_size M, vl_size K, vl_size depth) |
Initialize HIKM tree. | |
VlHIKMTree * | vl_hikm_new (int method) |
New HIKM tree. | |
void | vl_hikm_push (VlHIKMTree *f, vl_uint32 *asgn, vl_uint8 const *data, vl_size N) |
Project data down HIKM tree. | |
void | vl_hikm_set_max_niters (VlHIKMTree *f, int max_niters) |
Set maximum number of iterations. | |
void | vl_hikm_set_verbosity (VlHIKMTree *f, int verb) |
Set verbosity level. | |
void | vl_hikm_train (VlHIKMTree *f, vl_uint8 const *data, vl_size N) |
Train HIKM tree. | |
static void | xdelete (VlHIKMNode *node) |
static VlHIKMNode * | xmeans (VlHIKMTree *tree, vl_uint8 const *data, vl_size N, vl_size K, vl_size height) |
Compute HIKM clustering. |
Hierarchical Integer K-Means Clustering - Declaration.
Definition in file hikmeans.c.
vl_uint8* vl_hikm_copy_subset | ( | vl_uint8 const * | data, |
vl_uint32 * | ids, | ||
vl_size | N, | ||
vl_size | M, | ||
vl_uint32 | id, | ||
vl_size * | N2 | ||
) |
------------------------------------------------------------------
Definition at line 56 of file hikmeans.c.
void vl_hikm_delete | ( | VlHIKMTree * | f | ) |
Delete HIKM tree.
------------------------------------------------------------------
f | HIKM tree. |
Definition at line 197 of file hikmeans.c.
vl_size vl_hikm_get_depth | ( | VlHIKMTree const * | f | ) |
vl_size vl_hikm_get_K | ( | VlHIKMTree const * | f | ) |
vl_size vl_hikm_get_max_niters | ( | VlHIKMTree const * | f | ) |
Get maximum number of iterations.
f | HIKM tree. |
Definition at line 335 of file hikmeans.c.
vl_size vl_hikm_get_ndims | ( | VlHIKMTree const * | f | ) |
Get data dimensionality.
f | HIKM tree. |
Definition at line 290 of file hikmeans.c.
VlHIKMNode const* vl_hikm_get_root | ( | VlHIKMTree const * | f | ) |
Get maximum number of iterations.
f | HIKM tree. |
Definition at line 346 of file hikmeans.c.
int vl_hikm_get_verbosity | ( | VlHIKMTree const * | f | ) |
Get verbosity level.
f | HIKM tree. |
Definition at line 324 of file hikmeans.c.
void vl_hikm_init | ( | VlHIKMTree * | f, |
vl_size | M, | ||
vl_size | K, | ||
vl_size | depth | ||
) |
Initialize HIKM tree.
------------------------------------------------------------------
f | HIKM tree. |
M | Data dimensionality. |
K | Number of clusters per node. |
depth | Tree depth. |
Definition at line 217 of file hikmeans.c.
VlHIKMTree* vl_hikm_new | ( | int | method | ) |
New HIKM tree.
------------------------------------------------------------------
method | clustering method. |
Definition at line 183 of file hikmeans.c.
void vl_hikm_push | ( | VlHIKMTree * | f, |
vl_uint32 * | asgn, | ||
vl_uint8 const * | data, | ||
vl_size | N | ||
) |
Project data down HIKM tree.
------------------------------------------------------------------
f | HIKM tree. |
asgn | Path down the tree (out). |
data | Data to project. |
N | Number of data. |
The function writes to asgn the path of the data data down the HIKM tree f. The parameter asgn must point to an array of M
by N
elements, where M
is the depth of the HIKM tree and N
is the number of data point to process.
Definition at line 257 of file hikmeans.c.
void vl_hikm_set_max_niters | ( | VlHIKMTree * | f, |
int | max_niters | ||
) |
Set maximum number of iterations.
f | HIKM tree. |
max_niters | maximum number of iterations. |
Definition at line 368 of file hikmeans.c.
void vl_hikm_set_verbosity | ( | VlHIKMTree * | f, |
int | verb | ||
) |
Set verbosity level.
f | HIKM tree. |
verb | verbosity level. |
Definition at line 357 of file hikmeans.c.
void vl_hikm_train | ( | VlHIKMTree * | f, |
vl_uint8 const * | data, | ||
vl_size | N | ||
) |
Train HIKM tree.
------------------------------------------------------------------
f | HIKM tree. |
data | Data to cluster. |
N | Number of data. |
Definition at line 238 of file hikmeans.c.
static void xdelete | ( | VlHIKMNode * | node | ) | [static] |
------------------------------------------------------------------
Definition at line 160 of file hikmeans.c.
static VlHIKMNode* xmeans | ( | VlHIKMTree * | tree, |
vl_uint8 const * | data, | ||
vl_size | N, | ||
vl_size | K, | ||
vl_size | height | ||
) | [static] |
Compute HIKM clustering.
------------------------------------------------------------------
tree | HIKM tree to initialize. |
data | Data to cluster. |
N | Number of data points. |
K | Number of clusters for this node. |
height | Tree height. |
Definition at line 104 of file hikmeans.c.