public class DunnIndex extends Object implements ClusterEvaluation
Constructor and Description |
---|
DunnIndex(DunnIndex toCopy)
Copy constructor
|
DunnIndex(IntraClusterEvaluation ice,
ClusterDissimilarity cd)
Creates a new DunnIndex
|
Modifier and Type | Method and Description |
---|---|
DunnIndex |
clone() |
double |
evaluate(int[] designations,
DataSet dataSet)
Evaluates the clustering of the given clustering.
|
double |
evaluate(List<List<DataPoint>> dataSets)
Evaluates the clustering of the given set of clusters.
|
public DunnIndex(IntraClusterEvaluation ice, ClusterDissimilarity cd)
ice
- the metric to measure the quality of a single clustercd
- the metric to measure the distance between two clusterspublic DunnIndex(DunnIndex toCopy)
toCopy
- the object to copypublic double evaluate(int[] designations, DataSet dataSet)
ClusterEvaluation
evaluate
in interface ClusterEvaluation
designations
- the array that stores the cluster assignments for
each data point in the data setdataSet
- the data set that contains all data pointspublic double evaluate(List<List<DataPoint>> dataSets)
ClusterEvaluation
evaluate
in interface ClusterEvaluation
dataSets
- a list of lists, where the size of the first index
indicates the the number of clusters, and the list at each index is the
data points that make up each cluster.public DunnIndex clone()
clone
in interface ClusterEvaluation
clone
in class Object
Copyright © 2017. All rights reserved.