latest version v1.9 - last update 10 Apr 2010 |
Calculates the normalized version of the modified Hubert statistic The index is between -1 and 1. More...
#include <ltiClusteringValidity.h>
Public Member Functions | |
normModHubertStat () | |
normModHubertStat (const normModHubertStat &other) | |
virtual | ~normModHubertStat () |
normModHubertStat & | copy (const normModHubertStat &other) |
normModHubertStat & | operator= (const normModHubertStat &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 normalized version of the modified Hubert statistic The index is between -1 and 1.
A value near 1 shows compact well separated clusters. 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, if the number of cluster is 1 or equal to the number of points
lti::normModHubertStat::normModHubertStat | ( | ) |
standard contructor
lti::normModHubertStat::normModHubertStat | ( | const normModHubertStat & | other | ) |
standard contructor
virtual lti::normModHubertStat::~normModHubertStat | ( | ) | [virtual] |
destructor
virtual bool lti::normModHubertStat::apply | ( | const std::vector< dmatrix > & | clusteredData, | |
double & | index, | |||
const dmatrix & | centroids | |||
) | const [virtual] |
calculates the normalized modified Hubert Statistics 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::normModHubertStat::clone | ( | ) | const [virtual] |
# returns a pointer to a clone of this functor.
Implements lti::functor.
normModHubertStat& lti::normModHubertStat::copy | ( | const normModHubertStat & | other | ) |
copy data of "other" functor.
other | the functor to be copied |
Reimplemented from lti::clusteringValidity.
virtual const char* lti::normModHubertStat::getTypeName | ( | ) | const [virtual] |
returns the name of this type
Reimplemented from lti::clusteringValidity.
normModHubertStat& lti::normModHubertStat::operator= | ( | const normModHubertStat & | other | ) |
alias for copy member
other | the functor to be copied |
Reimplemented from lti::clusteringValidity.