/usr/include/vl/hikmeans.h is in libvlfeat-dev 0.9.20+dfsg0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | /** @file hikmeans.h
** @brief Hierarchical Integer K-Means Clustering
** @author Brian Fulkerson
**/
/*
Copyright (C) 2007-12 Andrea Vedaldi and Brian Fulkerson.
All rights reserved.
This file is part of the VLFeat library and is made available under
the terms of the BSD license (see the COPYING file).
*/
#ifndef VL_HIKMEANS_H
#define VL_HIKMEANS_H
#include "generic.h"
#include "ikmeans.h"
struct _VLHIKMTree ;
struct _VLHIKMNode ;
/** @brief HIKM tree node
**
** The number of children @a K is not bigger than the @a K parameter
** of the HIKM tree.
**/
typedef struct _VlHIKMNode
{
VlIKMFilt *filter ; /**< IKM filter for this node*/
struct _VlHIKMNode **children ; /**< Node children (if any) */
} VlHIKMNode ;
/** @brief HIKM tree */
typedef struct _VlHIKMTree {
vl_size M ; /**< IKM: data dimensionality */
vl_size K ; /**< IKM: K */
vl_size depth ; /**< Depth of the tree */
vl_size max_niters ; /**< IKM: maximum # of iterations */
int method ; /**< IKM: method */
int verb ; /**< Verbosity level */
VlHIKMNode * root; /**< Tree root node */
} VlHIKMTree ;
/** @name Create and destroy
** @{
**/
VL_EXPORT VlHIKMTree *vl_hikm_new (int method) ;
VL_EXPORT void vl_hikm_delete (VlHIKMTree *f) ;
/** @} */
/** @name Retrieve data and parameters
** @{
**/
VL_EXPORT vl_size vl_hikm_get_ndims (VlHIKMTree const *f) ;
VL_EXPORT vl_size vl_hikm_get_K (VlHIKMTree const *f) ;
VL_EXPORT vl_size vl_hikm_get_depth (VlHIKMTree const *f) ;
VL_EXPORT int vl_hikm_get_verbosity (VlHIKMTree const *f) ;
VL_EXPORT vl_size vl_hikm_get_max_niters (VlHIKMTree const *f) ;
VL_EXPORT VlHIKMNode const * vl_hikm_get_root (VlHIKMTree const *f) ;
/** @} */
/** @name Set parameters
** @{
**/
VL_EXPORT void vl_hikm_set_verbosity (VlHIKMTree *f, int verb) ;
VL_EXPORT void vl_hikm_set_max_niters (VlHIKMTree *f, int max_niters) ;
/** @} */
/** @name Process data
** @{
**/
VL_EXPORT void vl_hikm_init (VlHIKMTree *f, vl_size M, vl_size K, vl_size depth) ;
VL_EXPORT void vl_hikm_train (VlHIKMTree *f, vl_uint8 const *data, vl_size N) ;
VL_EXPORT void vl_hikm_push (VlHIKMTree *f, vl_uint32 *asgn, vl_uint8 const *data, vl_size N) ;
/** @} */
/* VL_HIKMEANS_H */
#endif
|