|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.clustering.evaluation.ClusterEvaluator
public class ClusterEvaluator
Constructor Summary | |
---|---|
ClusterEvaluator(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path clustersIn)
Initialize a new instance from job information |
|
ClusterEvaluator(Map<Integer,List<VectorWritable>> representativePoints,
List<Cluster> clusters,
DistanceMeasure measure)
For testing only |
Method Summary | |
---|---|
double |
interClusterDensity()
Computes the inter-cluster density as defined in "Mahout In Action" |
Map<Integer,Vector> |
interClusterDistances()
Computes the inter-cluster distances |
Vector |
intraClusterDensities()
Computes the intra-cluster densities for all clusters as the average distance of the representative points from each other |
double |
intraClusterDensity()
Computes the average intra-cluster density as the average of each cluster's intra-cluster density |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClusterEvaluator(Map<Integer,List<VectorWritable>> representativePoints, List<Cluster> clusters, DistanceMeasure measure)
representativePoints
- a Mapclusters
- a Mapmeasure
- an appropriate DistanceMeasurepublic ClusterEvaluator(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 interClusterDensity()
public Map<Integer,Vector> interClusterDistances()
public double intraClusterDensity()
public Vector intraClusterDensities()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |