Class ReciprocalAverageEccentricity<U>
java.lang.Object
es.uam.eps.ir.relison.sna.metrics.distance.graph.ReciprocalAverageEccentricity<U>
- Type Parameters:
U
- Type of the users.
- All Implemented Interfaces:
GraphMetric<U>
public class ReciprocalAverageEccentricity<U> extends java.lang.Object implements GraphMetric<U>
Computes the diameter of a network.
References:
- J. Sanz-Cruzado, P. Castells. Beyond accuracy in link prediction. 3rd Workshop on Social Media for Personalization and Search (SoMePEaS 2019).
- J. Sanz-Cruzado, S.M. Pepa, P. Castells. Structural novelty and diversity in link prediction. 0th International Workshop on Modeling Social Media (MSM 2018) at The Web Conference (WWW 2018)
-
Field Summary
Fields Modifier and Type Field Description private Eccentricity<U>
eccentricity
Distance calculator. -
Constructor Summary
Constructors Constructor Description ReciprocalAverageEccentricity()
Constructor.ReciprocalAverageEccentricity(DistanceCalculator<U> dc)
Constructor. -
Method Summary
-
Field Details
-
eccentricity
Distance calculator.
-
-
Constructor Details
-
ReciprocalAverageEccentricity
Constructor.- Parameters:
dc
- distance calculator.
-
ReciprocalAverageEccentricity
public ReciprocalAverageEccentricity()Constructor.
-
-
Method Details
-
compute
Description copied from interface:GraphMetric
Computes the value.- Specified by:
compute
in interfaceGraphMetric<U>
- Parameters:
graph
- graph metric.- Returns:
- the value of the metric.
-