|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbcds.phison.gm.GraphMetricBase<V,E>
bcds.phison.gm.OutNodeDegree<V,E>
public class OutNodeDegree<V,E>
Computes the average node degree of a topology as a
GraphMetric
. This class uses the number of outgoing edges
of a node as its nodal degree. It also returns the
node degree as a NODE metric.
Additionally, it provides the node degree distribution, although that functionality is not accessible through the GraphMetric interface.
Constructor Summary | |
---|---|
OutNodeDegree()
Default constructor. |
|
OutNodeDegree(SimGraph<V,E> g,
Environ env)
Creates a new instance and calls setup to complete the initialization. |
Method Summary | |
---|---|
java.util.Map<java.lang.Integer,java.lang.Integer> |
degreeDistrib()
Returns the (outgoing) nodal degree distribution. |
java.lang.String |
getDescription()
Returns a string describing the metric, for example, article where it has been published, URL where to find reference implementation, etc. |
double |
getGraphMetric()
Returns the average (out) node degree. |
double |
getGraphMetricStdev()
Returns the standard deviation of the average (out) node degree. |
java.lang.String |
getLabel()
Returns the string "Avg. (out) node degree". |
java.util.Map<V,java.lang.Double> |
getNodeMetric()
Returns the (out) node degrees. |
boolean |
isApplicableTo(MetricTarget m)
Returns true if m is
MetricTarget .GRAPH or NODE. |
Methods inherited from class bcds.phison.gm.GraphMetricBase |
---|
dump, getEdgeMetric, getEnviron, getEnvParams, getGraph, getName, run, setup |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface bcds.phison.gm.GraphMetric |
---|
dump, getEdgeMetric, run, setup |
Methods inherited from interface bcds.phison.WithEnvParams |
---|
getEnviron, getEnvParams, getName |
Constructor Detail |
---|
public OutNodeDegree()
public OutNodeDegree(SimGraph<V,E> g, Environ env)
Method Detail |
---|
public boolean isApplicableTo(MetricTarget m)
m
is
MetricTarget
.GRAPH or NODE.
isApplicableTo
in interface GraphMetric<V,E>
isApplicableTo
in class GraphMetricBase<V,E>
public double getGraphMetric()
getGraphMetric
in interface GraphMetric<V,E>
getGraphMetric
in class GraphMetricBase<V,E>
public double getGraphMetricStdev()
getGraphMetricStdev
in interface GraphMetric<V,E>
getGraphMetricStdev
in class GraphMetricBase<V,E>
public java.util.Map<V,java.lang.Double> getNodeMetric()
getNodeMetric
in interface GraphMetric<V,E>
getNodeMetric
in class GraphMetricBase<V,E>
public java.lang.String getLabel()
getLabel
in interface GraphMetric<V,E>
public java.lang.String getDescription()
GraphMetric
getDescription
in interface GraphMetric<V,E>
public java.util.Map<java.lang.Integer,java.lang.Integer> degreeDistrib()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |