Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > SSR > SSR__KMeans__Bench
view kmeans.h @ 0:0ce47c784647
Initial commit
| author | Merten Sach <msach@mailbox.tu-berlin.de> |
|---|---|
| date | Tue, 27 Sep 2011 15:08:02 +0200 |
| parents | |
| children |
line source
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2 /* File: kmeans.h (an OpenMP version) */
3 /* Description: header file for a simple k-means clustering program */
4 /* */
5 /* Author: Wei-keng Liao */
6 /* ECE Department Northwestern University */
7 /* email: wkliao@ece.northwestern.edu */
8 /* Copyright, 2005, Wei-keng Liao */
9 /* */
10 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
12 #ifndef _H_KMEANS
13 #define _H_KMEANS
15 #include <assert.h>
16 #include "SSR_lib/SSR.h"
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 };
29 void kmeans(void *data, VirtProcr *VProc);
31 double** file_read(int, char*, int*, int*);
33 double wtime(void);
35 #endif
