msach@0: /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ msach@0: /* File: kmeans.h (an OpenMP version) */ msach@0: /* Description: header file for a simple k-means clustering program */ msach@0: /* */ msach@0: /* Author: Wei-keng Liao */ msach@0: /* ECE Department Northwestern University */ msach@0: /* email: wkliao@ece.northwestern.edu */ msach@0: /* Copyright, 2005, Wei-keng Liao */ msach@0: /* */ msach@0: /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ msach@0: msach@0: #ifndef _H_KMEANS msach@0: #define _H_KMEANS msach@0: msach@0: #include msach@0: #include "SSR_lib/SSR.h" msach@0: msach@0: struct call_data{ msach@0: int is_perform_atomic; /* in: */ msach@0: double **objects; /* in: [numObjs][numCoords] */ msach@0: int numCoords; /* no. coordinates */ msach@0: int numObjs; /* no. objects */ msach@0: int numClusters; /* no. clusters */ msach@0: double threshold; /* % objects change membership */ msach@0: int *membership; msach@0: double **clusters; msach@0: }; msach@0: msach@0: void kmeans(void *data, VirtProcr *VProc); msach@0: msach@0: double** file_read(int, char*, int*, int*); msach@0: msach@0: double wtime(void); msach@0: msach@0: #endif