public class MeanDistance extends Object implements IntraClusterEvaluation
Constructor and Description |
---|
MeanDistance()
Creates a new MeanDistance using the
EuclideanDistance |
MeanDistance(DistanceMetric dm)
Creates a new MeanDistance
|
MeanDistance(MeanDistance toCopy)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
MeanDistance |
clone() |
double |
evaluate(int[] designations,
DataSet dataSet,
int clusterID)
Evaluates the cluster represented by the given list of data points.
|
double |
evaluate(List<DataPoint> dataPoints)
Evaluates the cluster represented by the given list of data points.
|
public MeanDistance()
EuclideanDistance
public MeanDistance(DistanceMetric dm)
dm
- the metric to measure the distance between two points bypublic MeanDistance(MeanDistance toCopy)
toCopy
- the object to copypublic double evaluate(int[] designations, DataSet dataSet, int clusterID)
IntraClusterEvaluation
evaluate
in interface IntraClusterEvaluation
designations
- the array of cluster designations for the data setdataSet
- the full data set of all clustersclusterID
- the cluster id in the designations array to
return the evaluation ofpublic double evaluate(List<DataPoint> dataPoints)
IntraClusterEvaluation
evaluate
in interface IntraClusterEvaluation
dataPoints
- the data points that make up this clusterpublic MeanDistance clone()
clone
in interface IntraClusterEvaluation
clone
in class Object
Copyright © 2017. All rights reserved.