LTI-Lib latest version v1.9 - last update 10 Apr 2010

lti::modHubertStat Class Reference

Calculates the modified Hubert statistic of the given clustering. More...

#include <ltiClusteringValidity.h>

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

List of all members.

Public Member Functions

 modHubertStat ()
 modHubertStat (const modHubertStat &other)
virtual ~modHubertStat ()
modHubertStatcopy (const modHubertStat &other)
modHubertStatoperator= (const modHubertStat &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 modified Hubert statistic of the given clustering.

When the same data set is tested with different parameters, e.a. with different number of clusters, the best possible clustering is shown by a sharp knee in this index.

This validity measure is not defined for one cluster or if the number of clusters is equal the the number of points


Constructor & Destructor Documentation

lti::modHubertStat::modHubertStat (  ) 

standard contructor

lti::modHubertStat::modHubertStat ( const modHubertStat other  ) 

standard contructor

virtual lti::modHubertStat::~modHubertStat (  )  [virtual]

destructor


Member Function Documentation

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

calculates the Dunn 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::modHubertStat::clone (  )  const [virtual]

returns a pointer to a clone of this functor.

Implements lti::functor.

modHubertStat& lti::modHubertStat::copy ( const modHubertStat other  ) 

copy data of "other" functor.

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

Reimplemented from lti::clusteringValidity.

virtual const char* lti::modHubertStat::getTypeName (  )  const [virtual]

returns the name of this type

Reimplemented from lti::clusteringValidity.

modHubertStat& lti::modHubertStat::operator= ( const modHubertStat other  ) 

alias for copy member

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

Reimplemented from lti::clusteringValidity.


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

Generated on Sat Apr 10 15:26:47 2010 for LTI-Lib by Doxygen 1.6.1