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 EdgeOrientationorientOrientation 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, waitMethods 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:VertexMetricComputes the value of the metric for a single user.- Specified by:
computein interfaceVertexMetric<U>- Parameters:
graph- The graph.user- The user to compute.- Returns:
- the value of the metric.
-