comparison kmeans.h @ 2:467746c73fd0

DataSet print
author Merten Sach <msach@mailbox.tu-berlin.de>
date Wed, 28 Sep 2011 15:07:32 +0200
parents e69e4c2d612a
children
comparison
equal deleted inserted replaced
0:783c96a334a8 1:27afc69f57f9
11 11
12 #ifndef _H_KMEANS 12 #ifndef _H_KMEANS
13 #define _H_KMEANS 13 #define _H_KMEANS
14 14
15 #include <assert.h> 15 #include <assert.h>
16 #include "VPThread_lib/VPThread.h"
16 17
17 double** pthreads_kmeans(int, double**, int, int, int, double, int*); 18 struct call_data{
19 int is_perform_atomic; /* in: */
20 double **objects; /* in: [numObjs][numCoords] */
21 int numCoords; /* no. coordinates */
22 int numObjs; /* no. objects */
23 int numClusters; /* no. clusters */
24 double threshold; /* % objects change membership */
25 int *membership;
26 double **clusters;
27 };
28
29 void pthreads_kmeans(void *data, VirtProcr *VProc);
18 30
19 double** file_read(int, char*, int*, int*); 31 double** file_read(int, char*, int*, int*);
20 32
21 double wtime(void); 33 double wtime(void);
22 34