public class DaviesBouldinIndex extends Object implements ClusterEvaluation
Constructor and Description |
---|
DaviesBouldinIndex()
Creates a new DaviesBouldinIndex using the
EuclideanDistance . |
DaviesBouldinIndex(DaviesBouldinIndex toCopy)
Copy constructor
|
DaviesBouldinIndex(DistanceMetric dm)
Creates a new DaviesBouldinIndex
|
Modifier and Type | Method and Description |
---|---|
DaviesBouldinIndex |
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 DaviesBouldinIndex()
EuclideanDistance
.public DaviesBouldinIndex(DaviesBouldinIndex toCopy)
toCopy
- the object to copypublic DaviesBouldinIndex(DistanceMetric dm)
dm
- the distance measure to use when computingpublic 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 DaviesBouldinIndex clone()
clone
in interface ClusterEvaluation
clone
in class Object
Copyright © 2017. All rights reserved.