mirror of
https://github.com/BlackLight/fkmeans.git
synced 2024-11-24 04:25:11 +01:00
Adding doxygen documentation support
This commit is contained in:
parent
7abf1fcfbd
commit
e0d419db29
2 changed files with 1643 additions and 0 deletions
13
kmeans.h
13
kmeans.h
|
@ -21,12 +21,25 @@
|
||||||
#define __KMEANS_H
|
#define __KMEANS_H
|
||||||
|
|
||||||
typedef struct __kmeans_t {
|
typedef struct __kmeans_t {
|
||||||
|
/** Input data set */
|
||||||
double **dataset;
|
double **dataset;
|
||||||
|
|
||||||
|
/** Number of elements in the data set */
|
||||||
int dataset_size;
|
int dataset_size;
|
||||||
|
|
||||||
|
/** Dimension of each element of the data set */
|
||||||
int dataset_dim;
|
int dataset_dim;
|
||||||
|
|
||||||
|
/** Number of clusters */
|
||||||
int k;
|
int k;
|
||||||
|
|
||||||
|
/** Vector containing the number of elements in each cluster */
|
||||||
int *cluster_sizes;
|
int *cluster_sizes;
|
||||||
|
|
||||||
|
/** Clusters */
|
||||||
double ***clusters;
|
double ***clusters;
|
||||||
|
|
||||||
|
/** Coordinates of the centers of the clusters */
|
||||||
double **centers;
|
double **centers;
|
||||||
} kmeans_t;
|
} kmeans_t;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue