Class CommunityDegreeGini<U>
java.lang.Object
es.uam.eps.ir.relison.sna.metrics.communities.graph.gini.degree.CommunityDegreeGini<U>
- Type Parameters:
U- type of the users.
- All Implemented Interfaces:
CommunityMetric<U>
- Direct Known Subclasses:
CompleteCommunityDegreeGini,InterCommunityDegreeGini
public abstract class CommunityDegreeGini<U> extends java.lang.Object implements CommunityMetric<U>
Computes the community degree Gini of the graph, i.e. the Gini coefficient for the
degree distribution of the communities in the graph.
-
Field Summary
Fields Modifier and Type Field Description private CommunityGraphGenerator<U>cggThe community graph generator.private EdgeOrientationorientationThe degree to take in the community graph. -
Constructor Summary
Constructors Constructor Description CommunityDegreeGini(EdgeOrientation orientation, CommunityGraphGenerator<U> cgg)Constructor. -
Method Summary
Modifier and Type Method Description doublecompute(Graph<U> graph, Communities<U> comm)Computes the value of the metric in the graph.
-
Field Details
-
orientation
The degree to take in the community graph. -
cgg
The community graph generator.
-
-
Constructor Details
-
CommunityDegreeGini
Constructor.- Parameters:
orientation- Orientation of the edges.cgg- Community graph generator.
-
-
Method Details
-
compute
Description copied from interface:CommunityMetricComputes the value of the metric in the graph.- Specified by:
computein interfaceCommunityMetric<U>- Parameters:
graph- Graph.comm- Communities of the graph.- Returns:
- the value of the metric.
-