|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.clustering.cdbw.CDbwEvaluator
public final class CDbwEvaluator
This class calculates the CDbw metric as defined in http://www.db-net.aueb.gr/index.php/corporate/content/download/227/833/file/HV_poster2002.pdf
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 directoryMethod Detail |
---|
public double getCDbw()
public double intraClusterDensity()
public Map<Integer,Map<Integer,Double>> interClusterDensities()
public double separation()
public double interClusterDensity()
public Vector intraClusterDensities()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |