KMeanCluster Class Reference
[Classification classes]

#include <KMeanCluster.h>

Collaboration diagram for KMeanCluster:

Collaboration graph
[legend]

List of all members.

Public Types

typedef std::list< Vector3dVectorList
 a list holding vectors to be clustered

Public Member Functions

 KMeanCluster (int nCentres)
void train (VectorList &v)
int clusterize (Vector3d &v)
VectorList::iterator begin ()
VectorList::iterator end ()
const size_t getClusterCount () const
void setCentres (VectorList &centres)


Detailed Description

Class Providing KMean clustering

Definition at line 10 of file KMeanCluster.h.


Member Typedef Documentation

typedef std::list<Vector3d> KMeanCluster::VectorList

a list holding vectors to be clustered

Definition at line 14 of file KMeanCluster.h.


Constructor & Destructor Documentation

KMeanCluster::KMeanCluster ( int  nCentres  ) 

Parameters:
nCentres initial cluster centres

Definition at line 4 of file KMeanCluster.cpp.


Member Function Documentation

VectorList::iterator KMeanCluster::begin (  )  [inline]

serialisation

Returns:
iterator to the beginning of the centre list

Definition at line 36 of file KMeanCluster.h.

int KMeanCluster::clusterize ( Vector3d v  ) 

Assign a cluster-id to a given vector

Parameters:
v Vector to be classified
Returns:
cluster-id for given vector

Definition at line 54 of file KMeanCluster.cpp.

VectorList::iterator KMeanCluster::end (  )  [inline]

serialisation

Returns:
iterator to the end of the centre list

Definition at line 42 of file KMeanCluster.h.

const size_t KMeanCluster::getClusterCount (  )  const [inline]

serialisation

Returns:
cluster count

Definition at line 48 of file KMeanCluster.h.

void KMeanCluster::setCentres ( VectorList centres  )  [inline]

deserialization

Parameters:
centres center list

Definition at line 54 of file KMeanCluster.h.

void KMeanCluster::train ( VectorList v  ) 

Adjust the cluster centes

Parameters:
v a list with training data

Definition at line 11 of file KMeanCluster.cpp.


The documentation for this class was generated from the following files:

Generated on Sun Nov 30 23:45:40 2008 for Modular Motion Processor by  doxygen 1.5.7.1