Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

fl::KMeansParallel Class Reference

#include <cluster.h>

Inheritance diagram for fl::KMeansParallel:

fl::KMeans fl::ClusterMethod List of all members.

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.


Member Enumeration Documentation

enum fl::KMeansParallel::EMstate
 

Enumeration values:
initializing 
estimating 
maximizing 
checking 


Constructor & Destructor Documentation

KMeansParallel::KMeansParallel float    maxSize,
float    minSize,
int    initialK,
int    maxK,
const std::string &    clusterFileName = ""
 

KMeansParallel::KMeansParallel std::istream &    stream,
const std::string &    clusterFileName = ""
 


Member Function Documentation

void KMeansParallel::client std::string    serverName
 

void * KMeansParallel::listenThread void *    arg [static]
 

void * KMeansParallel::proxyThread void *    arg [static]
 

void KMeansParallel::run const std::vector< Vector< float > > &    data [virtual]
 

Peform clustering on collection of points.

Reimplemented from fl::KMeans.


Member Data Documentation

const std::vector<Vector<float> >* fl::KMeansParallel::data
 

int fl::KMeansParallel::iteration
 

float fl::KMeansParallel::largestChange
 

Matrix<float> fl::KMeansParallel::member
 

EMstate fl::KMeansParallel::state
 

pthread_mutex_t fl::KMeansParallel::stateLock
 

Used for all access to shared structures.

int fl::KMeansParallel::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.

std::vector<int> fl::KMeansParallel::workUnits
 

List of current tasks, identified only by ints. Basically, these are positions in a well-defined loop.


The documentation for this class was generated from the following files:
Generated on Thu Dec 9 17:13:26 2004 for fl by doxygen1.2.18