diff kmeans.h @ 1:8e7bdab2840f

VPThread version workinh
author Merten Sach <msach@mailbox.tu-berlin.de>
date Tue, 16 Aug 2011 20:32:55 +0200
parents e69e4c2d612a
children
line diff
     1.1 --- a/kmeans.h	Wed Aug 03 19:30:34 2011 +0200
     1.2 +++ b/kmeans.h	Tue Aug 16 20:32:55 2011 +0200
     1.3 @@ -13,8 +13,20 @@
     1.4  #define _H_KMEANS
     1.5  
     1.6  #include <assert.h>
     1.7 +#include "VPThread_lib/VPThread.h"
     1.8  
     1.9 -double** pthreads_kmeans(int, double**, int, int, int, double, int*);
    1.10 +struct call_data{
    1.11 +    int is_perform_atomic; 	/* in: */
    1.12 +    double **objects;          	/* in: [numObjs][numCoords] */
    1.13 +    int     numCoords;         	/* no. coordinates */
    1.14 +    int     numObjs;           	/* no. objects */
    1.15 +    int     numClusters;       	/* no. clusters */
    1.16 +    double   threshold;         	/* % objects change membership */
    1.17 +    int    *membership;
    1.18 +    double **clusters;
    1.19 +};
    1.20 +
    1.21 +void pthreads_kmeans(void *data, VirtProcr *VProc);
    1.22  
    1.23  double** file_read(int, char*, int*, int*);
    1.24