Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > SSR > SSR__KMeans__Bench
comparison 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 |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:27a848923d80 |
|---|---|
| 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 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ | |
| 11 | |
| 12 #ifndef _H_KMEANS | |
| 13 #define _H_KMEANS | |
| 14 | |
| 15 #include <assert.h> | |
| 16 #include "SSR_lib/SSR.h" | |
| 17 | |
| 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 kmeans(void *data, VirtProcr *VProc); | |
| 30 | |
| 31 double** file_read(int, char*, int*, int*); | |
| 32 | |
| 33 double wtime(void); | |
| 34 | |
| 35 #endif |
