Class CommunityDegree<U>

java.lang.Object
es.uam.eps.ir.relison.sna.metrics.communities.indiv.CommunityDegree<U>
Type Parameters:
U - Type of the users.
All Implemented Interfaces:
IndividualCommunityMetric<U>

public class CommunityDegree<U>
extends java.lang.Object
implements IndividualCommunityMetric<U>
Computes the community degree.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    private EdgeOrientation orientation
    Indicates if the degree to obtain is inDegree, outDegree or the full degree of the community graph.
  • Constructor Summary

    Constructors 
    Constructor Description
    CommunityDegree​(EdgeOrientation orientation)
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    double averageValue​(Graph<U> graph, Communities<U> comm)
    Computes the average value of the metric in the graph.
    java.util.Map<java.lang.Integer,​java.lang.Double> compute​(Graph<U> graph, Communities<U> comm)
    Computes the value of the metric for all the users in the graph.
    double compute​(Graph<U> graph, Communities<U> comm, int indiv)
    Computes the value of the metric for a single user.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • orientation

      private final EdgeOrientation orientation
      Indicates if the degree to obtain is inDegree, outDegree or the full degree of the community graph.
  • Constructor Details

    • CommunityDegree

      public CommunityDegree​(EdgeOrientation orientation)
      Constructor.
      Parameters:
      orientation - Indicates if the degree to obtain is inDegree, outDegree or the full degree of the community graph.
  • Method Details