LTI-Lib latest version v1.9 - last update 24 Nov 2005
Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

lti::daviesBouldinIndex Class Reference

Calculates the Davies Bouldin Index of the given clustering. More...

#include <ltiClusteringValidity.h>

Inheritance diagram for lti::daviesBouldinIndex:

Inheritance graph
[legend]
Collaboration diagram for lti::daviesBouldinIndex:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 daviesBouldinIndex ()
 daviesBouldinIndex (const daviesBouldinIndex &other)
virtual ~daviesBouldinIndex ()
daviesBouldinIndexcopy (const daviesBouldinIndex &other)
daviesBouldinIndexoperator= (const daviesBouldinIndex &other)
virtual const char * getTypeName () const
virtual functorclone () const
virtual bool apply (const std::vector< dmatrix > &clusteredData, double &index, const dmatrix &centroids) const

Detailed Description

Calculates the Davies Bouldin Index of the given clustering.

If different clustering, e.a. with different number of clusters, of the same data set are tested, the best will be the clustering with the minimal Davies Bouldin Index.


Constructor & Destructor Documentation

lti::daviesBouldinIndex::daviesBouldinIndex  ) 
 

standard contructor

lti::daviesBouldinIndex::daviesBouldinIndex const daviesBouldinIndex other  ) 
 

standard contructor

virtual lti::daviesBouldinIndex::~daviesBouldinIndex  )  [virtual]
 

destructor


Member Function Documentation

virtual bool lti::daviesBouldinIndex::apply const std::vector< dmatrix > &  clusteredData,
double &  index,
const dmatrix centroids
const [virtual]
 

calculates the Davies Bouldin Index of the clustered data.

Parameters:
clusteredData std::vector<dmatrix> with the source data.
index the clustering validity result
centroids dmatrix with each row representing a centroid of the corresponding distribution in clusteredData
Returns:
true if apply successful or false otherwise.

Implements lti::clusteringValidity.

virtual functor* lti::daviesBouldinIndex::clone  )  const [virtual]
 

returns a pointer to a clone of this functor.

Implements lti::functor.

daviesBouldinIndex& lti::daviesBouldinIndex::copy const daviesBouldinIndex other  ) 
 

copy data of "other" functor.

Parameters:
other the functor to be copied
Returns:
a reference to this functor object

virtual const char* lti::daviesBouldinIndex::getTypeName  )  const [virtual]
 

returns the name of this type

Reimplemented from lti::clusteringValidity.

daviesBouldinIndex& lti::daviesBouldinIndex::operator= const daviesBouldinIndex other  ) 
 

alias for copy member

Parameters:
other the functor to be copied
Returns:
a reference to this functor object


The documentation for this class was generated from the following file:
Generated on Thu Nov 24 16:31:12 2005 for LTI-Lib by Doxygen 1.4.4