Class NormalizedMutualInformation
java.lang.Object
org.graphstream.stream.SinkAdapter
org.graphstream.algorithm.measure.CommunityMeasure
org.graphstream.algorithm.measure.CommunityRelativeMeasure
org.graphstream.algorithm.measure.NormalizedMutualInformation
- All Implemented Interfaces:
Algorithm
,DynamicAlgorithm
,org.graphstream.stream.AttributeSink
,org.graphstream.stream.ElementSink
,org.graphstream.stream.Sink
- Direct Known Subclasses:
VariationOfInformation
public class NormalizedMutualInformation extends CommunityRelativeMeasure
Computes and updated the current Normalized Mutual Information (NMI) measure
between a dynamically-performed community assignment on a graph as it evolves
and a fixed assignment, known as reference.
- Author:
- Guillaume-Jean Herbiet
- Scientific Reference :
- L. Danon, A. Diaz-Guilera, J. Duch, and A. Arenas, “Comparing community structure identification,” Journal of Statistical Mechanics: Theory and Experiment, vol. 2005, no. 09, pp. P09008+, September 2005.
-
Constructor Summary
Constructors Constructor Description NormalizedMutualInformation(String marker)
New NMI measure, using the given marker for the dynamically performed assignment, and the default marker for the reference assignment.NormalizedMutualInformation(String marker, String referenceMarker)
New NMI measure, using the given marker for the dynamically performed assignment, and the given refrenceMarker for the reference assignment. -
Method Summary
Modifier and Type Method Description void
compute()
Compute the new NMI measure value.Methods inherited from class org.graphstream.algorithm.measure.CommunityRelativeMeasure
nodeAdded, nodeAttributeChanged, nodeRemoved
Methods inherited from class org.graphstream.algorithm.measure.CommunityMeasure
edgeAdded, edgeRemoved, getLastComputedValue, getMeasure, graphCleared, init, nodeAttributeAdded, terminate
-
Constructor Details
-
NormalizedMutualInformation
New NMI measure, using the given marker for the dynamically performed assignment, and the default marker for the reference assignment.- Parameters:
marker
- name of the attribute marking the computed communities.
-
NormalizedMutualInformation
New NMI measure, using the given marker for the dynamically performed assignment, and the given refrenceMarker for the reference assignment.- Parameters:
marker
- name of the attribute marking the computed communities.referenceMarker
- name of the attribute marking the reference communities.
-
-
Method Details
-
compute
public void compute()Compute the new NMI measure value.- Specified by:
compute
in interfaceAlgorithm
- Specified by:
compute
in classCommunityRelativeMeasure
- See Also:
Algorithm.init(Graph)
- Computational Complexity :
- O(2*C^2 + 6*C), where C is the expected number of communities in the graph.
-