|
Public Types |
| enum | EMstate { initializing,
estimating,
maximizing,
checking
} |
Public Methods |
| | KMeansParallel (float maxSize, float minSize, int initialK, int maxK, const std::string &clusterFileName="") |
| | KMeansParallel (std::istream &stream, const std::string &clusterFileName="") |
| virtual void | run (const std::vector< Vector< float > > &data) |
| | Peform clustering on collection of points.
|
| void | client (std::string serverName) |
Static Public Methods |
| void * | listenThread (void *arg) |
| void * | proxyThread (void *arg) |
Public Attributes |
| int | iteration |
const std::vector< Vector<
float > > * | data |
| Matrix< float > | member |
| float | largestChange |
| EMstate | state |
| pthread_mutex_t | stateLock |
| | Used for all access to shared structures.
|
| std::vector< int > | workUnits |
| | List of current tasks, identified only by ints. Basically, these are positions in a well-defined loop.
|
| int | unitsPending |
| | Number of workUnits still being worked on. Allows for error recovery by monitoring completion as a separate concept from tasks claimed by a thread.
|