Class AggregateIndividualCommMetric<U>
java.lang.Object
es.uam.eps.ir.relison.sna.metrics.communities.graph.AggregateIndividualCommMetric<U>
- Type Parameters:
U
- Type of the users.
- All Implemented Interfaces:
CommunityMetric<U>
public class AggregateIndividualCommMetric<U> extends java.lang.Object implements CommunityMetric<U>
Aggregate individual community metric.
-
Field Summary
Fields Modifier and Type Field Description private IndividualCommunityMetric<U>
indivMetric
Individual community metric. -
Constructor Summary
Constructors Constructor Description AggregateIndividualCommMetric(IndividualCommunityMetric<U> indivMetric)
Constructor. -
Method Summary
Modifier and Type Method Description double
compute(Graph<U> graph, Communities<U> comm)
Computes the value of the metric in the graph.
-
Field Details
-
indivMetric
Individual community metric.
-
-
Constructor Details
-
AggregateIndividualCommMetric
Constructor.- Parameters:
indivMetric
- the individual community metric.
-
-
Method Details
-
compute
Description copied from interface:CommunityMetric
Computes the value of the metric in the graph.- Specified by:
compute
in interfaceCommunityMetric<U>
- Parameters:
graph
- Graph.comm
- Communities of the graph.- Returns:
- the value of the metric.
-