Class LocalReciprocityRate<U>
java.lang.Object
es.uam.eps.ir.relison.sna.metrics.vertex.LocalReciprocityRate<U>
- Type Parameters:
U
- type of the users
- All Implemented Interfaces:
VertexMetric<U>
public class LocalReciprocityRate<U> extends java.lang.Object implements VertexMetric<U>
Computes the local reciprocity rate, i.e. the proportion of edges of a node which are reciprocal.
-
Field Summary
Fields Modifier and Type Field Description private EdgeOrientation
orient
Orientation of the edges. -
Constructor Summary
Constructors Constructor Description LocalReciprocityRate(EdgeOrientation orient)
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
-
orient
Orientation of the edges.
-
-
Constructor Details
-
LocalReciprocityRate
Constructor.- Parameters:
orient
- Orientation of the edges.
-
-
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.
-