Class HarmonicCentrality<U>
java.lang.Object
es.uam.eps.ir.relison.sna.metrics.distance.vertex.Closeness<U>
es.uam.eps.ir.relison.sna.metrics.distance.vertex.HarmonicCentrality<U>
- Type Parameters:
U
- Type of the users.
- All Implemented Interfaces:
VertexMetric<U>
public class HarmonicCentrality<U> extends Closeness<U>
Metric that computes the harmonic centrality of the nodes (a version of closeness that
uses the harmonic mean of the distances from the target node to the rest of nodes in the
network.
References:
M.E.J. Newman. Networks: an introduction (2010)
L.C. Freeman. Centrality in Networks: I. Conceptual clarification, Social Networks 1, 1979, pp.215-239
-
Constructor Summary
Constructors Constructor Description HarmonicCentrality()
Basic constructor.HarmonicCentrality(DistanceCalculator<U> dc)
Constructor. -
Method Summary
Methods inherited from class es.uam.eps.ir.relison.sna.metrics.distance.vertex.Closeness
averageValue, compute, compute
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface es.uam.eps.ir.relison.sna.metrics.VertexMetric
averageValue, compute
-
Constructor Details
-
HarmonicCentrality
public HarmonicCentrality()Basic constructor. Uses the harmonic mean computing algorithm. -
HarmonicCentrality
Constructor. Uses the harmonic mean computing algorithm.- Parameters:
dc
- distance calculator.
-