public final class CDbwEvaluator extends Object
| Constructor and Description |
|---|
CDbwEvaluator(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path clustersIn)
Initialize a new instance from job information
|
CDbwEvaluator(Map<Integer,List<VectorWritable>> representativePoints,
List<Cluster> clusters,
DistanceMeasure measure)
For testing only
|
| Modifier and Type | Method and Description |
|---|---|
double |
getCDbw()
Compute the CDbw validity metric (eqn 8).
|
Map<Integer,Map<Integer,Double>> |
interClusterDensities()
This function evaluates the density of points in the regions between each clusters (eqn 1).
|
double |
interClusterDensity()
This function evaluates the average density of points in the regions between clusters (eqn 1).
|
Vector |
intraClusterDensities()
The average density within clusters is defined as the percentage of representative points that reside in the
neighborhood of the clusters' centers.
|
double |
intraClusterDensity()
The average density within clusters is defined as the percentage of representative points that reside in the
neighborhood of the clusters' centers.
|
double |
separation()
Calculate the separation of clusters (eqn 4) taking into account both the distances between the clusters' closest
points and the Inter-cluster density.
|
public CDbwEvaluator(Map<Integer,List<VectorWritable>> representativePoints, List<Cluster> clusters, DistanceMeasure measure)
representativePoints - a Mapclusters - a Mapmeasure - an appropriate DistanceMeasurepublic CDbwEvaluator(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path clustersIn)
conf - a Configuration with appropriate parametersclustersIn - a String path to the input clusters directorypublic double getCDbw()
public double intraClusterDensity()
public Map<Integer,Map<Integer,Double>> interClusterDensities()
public double separation()
public double interClusterDensity()
public Vector intraClusterDensities()
Copyright © 2008–2013 The Apache Software Foundation. All rights reserved.