public class SoSCentroidDistance extends Object implements IntraClusterEvaluation
Constructor and Description |
---|
SoSCentroidDistance()
Creates a new MeanCentroidDistance using the
EuclideanDistance |
SoSCentroidDistance(DistanceMetric dm)
Creates a new MeanCentroidDistance.
|
SoSCentroidDistance(SoSCentroidDistance toCopy)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
SoSCentroidDistance |
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 SoSCentroidDistance()
EuclideanDistance
public SoSCentroidDistance(DistanceMetric dm)
dm
- the metric to measure the distance between two points bypublic SoSCentroidDistance(SoSCentroidDistance 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 SoSCentroidDistance clone()
clone
in interface IntraClusterEvaluation
clone
in class Object
Copyright © 2017. All rights reserved.