latest version v1.9 - last update 10 Apr 2010 |
computes the Dunn Index and its generalisations described in Bezdek, J.C.,Pal,N.R., 1998. More...
#include <ltiClusteringValidity.h>
Public Member Functions | |
dunnIndex () | |
dunnIndex (const dunnIndex &other) | |
virtual | ~dunnIndex () |
virtual const char * | getTypeName () const |
virtual bool | apply (const std::vector< dmatrix > &clusteredData, double &index, const dmatrix ¢roids) const |
const parameters & | getParameters () const |
dunnIndex & | copy (const dunnIndex &other) |
virtual functor * | clone () const |
dunnIndex & | operator= (const dunnIndex &other) |
computes the Dunn Index and its generalisations described in Bezdek, J.C.,Pal,N.R., 1998.
"Some new indexes of cluster validity." IEEE Transaction on Systems,Man, and cybernetics (Part B) 28, 301-315 the distance and diameter functions are implemented in the parent class so they can be used for other computations of validity indexes.
To find the best possible clustering look for the maximum value of this indices
Valid values for the measure of the diameters are: standard: the largest distance between to points in a cluster average: the average distance between all points in the cluster centroid: twice the average distance between each point and the centroid
valid values for the distance measure are minimum: the minimal distance between the points in the two clusters maximum: the maximum distance between the points in the two clusters mean: the average distance between all points in the clusters centroids: the distance between the centroids of the clusters interpoint: combination of mean and centroids
lti::dunnIndex::dunnIndex | ( | ) |
standard contructor
lti::dunnIndex::dunnIndex | ( | const dunnIndex & | other | ) |
standard contructor
virtual lti::dunnIndex::~dunnIndex | ( | ) | [virtual] |
destructor
virtual bool lti::dunnIndex::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::dunnIndex::clone | ( | ) | const [virtual] |
returns a pointer to a clone of this functor.
Implements lti::functor.
copy data of "other" functor.
other | the functor to be copied |
Reimplemented from lti::clusteringValidity.
const parameters& lti::dunnIndex::getParameters | ( | ) | const |
returns current parameters.
Reimplemented from lti::functor.
virtual const char* lti::dunnIndex::getTypeName | ( | ) | const [virtual] |
returns the name of this type
Reimplemented from lti::clusteringValidity.
alias for copy member
other | the functor to be copied |
Reimplemented from lti::clusteringValidity.