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