latest version v1.9 - last update 10 Apr 2010 |
Calculates the Davies Bouldin Index of the given clustering. More...
#include <ltiClusteringValidity.h>
Public Member Functions | |
daviesBouldinIndex () | |
daviesBouldinIndex (const daviesBouldinIndex &other) | |
virtual | ~daviesBouldinIndex () |
daviesBouldinIndex & | copy (const daviesBouldinIndex &other) |
daviesBouldinIndex & | operator= (const daviesBouldinIndex &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 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.
lti::daviesBouldinIndex::daviesBouldinIndex | ( | ) |
standard contructor
lti::daviesBouldinIndex::daviesBouldinIndex | ( | const daviesBouldinIndex & | other | ) |
standard contructor
virtual lti::daviesBouldinIndex::~daviesBouldinIndex | ( | ) | [virtual] |
destructor
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.
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::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.
other | the functor to be copied |
Reimplemented from lti::clusteringValidity.
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
other | the functor to be copied |
Reimplemented from lti::clusteringValidity.