Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > SSR > SSR__KMeans__Bench
annotate kmeans.h @ 3:d906272ff3a3
DataSet print
| author | Merten Sach <msach@mailbox.tu-berlin.de> |
|---|---|
| date | Wed, 28 Sep 2011 15:04:24 +0200 |
| parents | |
| children |
| rev | line source |
|---|---|
| msach@0 | 1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ |
| msach@0 | 2 /* File: kmeans.h (an OpenMP version) */ |
| msach@0 | 3 /* Description: header file for a simple k-means clustering program */ |
| msach@0 | 4 /* */ |
| msach@0 | 5 /* Author: Wei-keng Liao */ |
| msach@0 | 6 /* ECE Department Northwestern University */ |
| msach@0 | 7 /* email: wkliao@ece.northwestern.edu */ |
| msach@0 | 8 /* Copyright, 2005, Wei-keng Liao */ |
| msach@0 | 9 /* */ |
| msach@0 | 10 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ |
| msach@0 | 11 |
| msach@0 | 12 #ifndef _H_KMEANS |
| msach@0 | 13 #define _H_KMEANS |
| msach@0 | 14 |
| msach@0 | 15 #include <assert.h> |
| msach@0 | 16 #include "SSR_lib/SSR.h" |
| msach@0 | 17 |
| msach@0 | 18 struct call_data{ |
| msach@0 | 19 int is_perform_atomic; /* in: */ |
| msach@0 | 20 double **objects; /* in: [numObjs][numCoords] */ |
| msach@0 | 21 int numCoords; /* no. coordinates */ |
| msach@0 | 22 int numObjs; /* no. objects */ |
| msach@0 | 23 int numClusters; /* no. clusters */ |
| msach@0 | 24 double threshold; /* % objects change membership */ |
| msach@0 | 25 int *membership; |
| msach@0 | 26 double **clusters; |
| msach@0 | 27 }; |
| msach@0 | 28 |
| msach@0 | 29 void kmeans(void *data, VirtProcr *VProc); |
| msach@0 | 30 |
| msach@0 | 31 double** file_read(int, char*, int*, int*); |
| msach@0 | 32 |
| msach@0 | 33 double wtime(void); |
| msach@0 | 34 |
| msach@0 | 35 #endif |
