This file is indexed.

/usr/include/vl/ikmeans.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
81
82
83
84
85
86
87
/** @file ikmeans.h
 ** @brief Integer K-Means clustering
 ** @author Brian Fulkerson
 ** @author Andrea Vedaldi
 **/

/*
Copyright (C) 2014 Andrea Vedaldi.
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_IKMEANS_H
#define VL_IKMEANS_H

#include "generic.h"
#include "random.h"

#if 0
typedef vl_int64 vl_ikmacc_t ; /**< IKM accumulator data type */
#define VL_IKMACC_MAX 0x7fffffffffffffffULL
#else
typedef vl_int32 vl_ikmacc_t ; /**< IKM accumulator data type */
#define VL_IKMACC_MAX 0x7fffffffUL
#endif


/** ------------------------------------------------------------------
 ** @brief IKM algorithms
 **/

enum VlIKMAlgorithms {
  VL_IKM_LLOYD, /**< Lloyd algorithm */
  VL_IKM_ELKAN, /**< Elkan algorithm */
} ;

/** ------------------------------------------------------------------
 ** @brief IKM quantizer
 **/

typedef struct _VlIKMFilt
{
  vl_size M ; /**< data dimensionality */
  vl_size K ; /**< number of centers   */
  vl_size max_niters ; /**< Lloyd: maximum number of iterations */
  int method ; /**< Learning method */
  int verb ; /**< verbosity level */
  vl_ikmacc_t *centers ; /**< centers */
  vl_ikmacc_t *inter_dist ; /**< centers inter-distances */
} VlIKMFilt ;

/** @name Create and destroy
 ** @{ */
VL_EXPORT VlIKMFilt *vl_ikm_new (int method) ;
VL_EXPORT void vl_ikm_delete (VlIKMFilt *f) ;
/** @} */

/** @name Process data
 ** @{ */
VL_EXPORT void vl_ikm_init (VlIKMFilt *f, vl_ikmacc_t const *centers, vl_size M, vl_size K) ;
VL_EXPORT void vl_ikm_init_rand (VlIKMFilt *f, vl_size M, vl_size K) ;
VL_EXPORT void vl_ikm_init_rand_data (VlIKMFilt *f, vl_uint8 const *data, vl_size M, vl_size N, vl_size K) ;
VL_EXPORT int  vl_ikm_train (VlIKMFilt *f, vl_uint8 const *data, vl_size N) ;
VL_EXPORT void vl_ikm_push (VlIKMFilt *f, vl_uint32 *asgn, vl_uint8 const *data, vl_size N) ;
VL_EXPORT vl_uint vl_ikm_push_one (vl_ikmacc_t const *centers, vl_uint8 const *data, vl_size M, vl_size K) ;
/** @} */

/** @name Retrieve data and parameters
 ** @{ */
VL_EXPORT vl_size vl_ikm_get_ndims (VlIKMFilt const *f) ;
VL_EXPORT vl_size vl_ikm_get_K (VlIKMFilt const *f) ;
VL_EXPORT int vl_ikm_get_verbosity (VlIKMFilt const *f) ;
VL_EXPORT vl_size vl_ikm_get_max_niters (VlIKMFilt const *f) ;
VL_EXPORT vl_ikmacc_t const *vl_ikm_get_centers (VlIKMFilt const *f) ;
/** @} */

/** @name Set parameters
 ** @{ */
VL_EXPORT void vl_ikm_set_verbosity (VlIKMFilt *f, int verb) ;
VL_EXPORT void vl_ikm_set_max_niters (VlIKMFilt *f, vl_size max_niters) ;
/** @} */

/* VL_IKMEANS_H */
#endif