|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.sgs.impl.service.nodemap.affinity.AffinityGroupGoodness
public final class AffinityGroupGoodness
Utility methods for "goodness" measurements of found groups.
| Method Summary | |
|---|---|
static double |
calcJaccard(Collection<AffinityGroup> sample1,
Collection<AffinityGroup> sample2)
Calculates Jaccard's index for a pair of affinity group collections, which is a measurement of similarity of the groups found in the two collections. |
static double |
calcModularity(edu.uci.ics.jung.graph.Graph<LabelVertex,WeightedEdge> graph,
Collection<AffinityGroup> groups)
Given a graph and a set of partitions of it, calculate the modularity. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static double calcModularity(edu.uci.ics.jung.graph.Graph<LabelVertex,WeightedEdge> graph,
Collection<AffinityGroup> groups)
The modularity will be a number between 0.0 and 1.0, with a higher number being better.
See "Finding community structure in networks using eigenvectors of matrices" 2006 Mark Newman and "Finding community structure in very large networks" 2004 Clauset, Newman, Moore.
Note that modularity can only be calculated on a complete graph.
graph - the graph which was divided into communitiesgroups - the communities found in the graph
public static double calcJaccard(Collection<AffinityGroup> sample1,
Collection<AffinityGroup> sample2)
0.0 and 1.0,
with higher values indicating stronger similarity between two samples.
See page 8 of "Near linear time algorithm to detect community structures
in large-scale networks" 2007 Raghavan, Albert, Kumara.
Because Jaccard's index uses computed groups, rather than a graph, it can be useful when the graphs are distributed or incomplete.
sample1 - the first samplesample2 - the second sample
0.0 and 1.0,
with higher values indicating more similarity
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||