latest version v1.9 - last update 10 Apr 2010 |
Calculates the modified Hubert statistic of the given clustering. More...
#include <ltiClusteringValidity.h>
Public Member Functions | |
modHubertStat () | |
modHubertStat (const modHubertStat &other) | |
virtual | ~modHubertStat () |
modHubertStat & | copy (const modHubertStat &other) |
modHubertStat & | operator= (const modHubertStat &other) |
virtual const char * | getTypeName () const |
virtual functor * | clone () const |
virtual bool | apply (const std::vector< dmatrix > &clusteredData, double &index, const dmatrix ¢roids) const |
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
lti::modHubertStat::modHubertStat | ( | ) |
standard contructor
lti::modHubertStat::modHubertStat | ( | const modHubertStat & | other | ) |
standard contructor
virtual lti::modHubertStat::~modHubertStat | ( | ) | [virtual] |
destructor
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
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 |
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.
other | the functor to be copied |
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
other | the functor to be copied |
Reimplemented from lti::clusteringValidity.