Class InverseDegree<U>
java.lang.Object
es.uam.eps.ir.relison.sna.metrics.vertex.InverseDegree<U>
- Type Parameters:
U
- Type of the users.
- All Implemented Interfaces:
VertexMetric<U>
public class InverseDegree<U> extends java.lang.Object implements VertexMetric<U>
Computes the inverse of the degree of a node.
-
Field Summary
Fields Modifier and Type Field Description (package private) EdgeOrientation
orientation
The orientation in which the score is computed. -
Constructor Summary
Constructors Constructor Description InverseDegree(EdgeOrientation orientation)
Constructor. -
Method Summary
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, averageValue, compute, compute
-
Field Details
-
orientation
EdgeOrientation orientationThe orientation in which the score is computed.
-
-
Constructor Details
-
InverseDegree
Constructor.- Parameters:
orientation
- The orientation in which the score is computed.
-
-
Method Details
-
compute
Description copied from interface:VertexMetric
Computes the value of the metric for a single user.- Specified by:
compute
in interfaceVertexMetric<U>
- Parameters:
graph
- The graph.user
- The user to compute.- Returns:
- the value of the metric.
-