sim.field.network.stats
Class DegreeStatistics

java.lang.Object
  extended by sim.field.network.stats.DegreeStatistics

public class DegreeStatistics
extends java.lang.Object


Constructor Summary
DegreeStatistics()
           
 
Method Summary
static double[] getDegreeCCDF(Network network, boolean out)
          CCDF = complementary cummulative distribution function
static int[] getDegreeHistogram(Network network, boolean out)
           
static int getMaxInDegree(Network network)
          Returns the maximum in degree of nodes in the graph.
static int getMaxOutDegree(Network network)
          Returns the maximum out degree of nodes in the graph.
static double getMeanInDegree(Network network)
          Returns the mean in degree of nodes in the graph.
static double getMeanOutDegree(Network network)
          Returns the mean out degree of nodes in the graph.
static int getMinInDegree(Network network)
          Returns the minimum in degree of nodes in the graph.
static int getMinOutDegree(Network network)
          Returns the minimum out degree of nodes in the graph.
static int getSumOfDegrees(Network network)
          Returns the sum of degrees of all nodes in the network.
static double getVarInDegree(Network network)
          Returns the variance of the in degree of nodes in the graph.
static double getVarOutDegree(Network network)
          Returns the variance of the out degree of nodes in the graph.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DegreeStatistics

public DegreeStatistics()
Method Detail

getSumOfDegrees

public static int getSumOfDegrees(Network network)
Returns the sum of degrees of all nodes in the network.


getMinInDegree

public static int getMinInDegree(Network network)
Returns the minimum in degree of nodes in the graph.


getMinOutDegree

public static int getMinOutDegree(Network network)
Returns the minimum out degree of nodes in the graph.


getMaxInDegree

public static int getMaxInDegree(Network network)
Returns the maximum in degree of nodes in the graph.


getMaxOutDegree

public static int getMaxOutDegree(Network network)
Returns the maximum out degree of nodes in the graph.


getMeanInDegree

public static double getMeanInDegree(Network network)
Returns the mean in degree of nodes in the graph.


getMeanOutDegree

public static double getMeanOutDegree(Network network)
Returns the mean out degree of nodes in the graph.


getVarInDegree

public static double getVarInDegree(Network network)
Returns the variance of the in degree of nodes in the graph.


getVarOutDegree

public static double getVarOutDegree(Network network)
Returns the variance of the out degree of nodes in the graph.


getDegreeHistogram

public static int[] getDegreeHistogram(Network network,
                                       boolean out)

getDegreeCCDF

public static double[] getDegreeCCDF(Network network,
                                     boolean out)
CCDF = complementary cummulative distribution function