public class CommunityDistribution extends CommunityMeasure
Constructor and Description |
---|
CommunityDistribution(java.lang.String marker)
New size distribution measure using the specified marker as attribute
name for the community assignment.
|
Modifier and Type | Method and Description |
---|---|
float |
average()
Compute the average community size
|
java.lang.Object |
biggestCommunity()
Get the biggest generated community
|
void |
compute()
Computes and update the statistical information on size distribution.
|
int |
maxCommunitySize()
Get the maximum community size
|
int |
minCommunitySize()
Get the minimum community size
|
int |
number()
Get the number of communities
|
java.lang.Object |
smallestCommunity()
Get the smallest generated community
|
float |
stdev()
Compute the standard deviation of the community size
|
java.lang.String |
toString()
Updates the distribution information and returns a string for an easy
display of the results.
|
edgeAdded, edgeRemoved, getLastComputedValue, getMeasure, graphCleared, init, nodeAdded, nodeAttributeAdded, nodeAttributeChanged, nodeRemoved, terminate
public CommunityDistribution(java.lang.String marker)
marker
- Attribute name for the community assignment.public void compute()
compute
in interface Algorithm
compute
in class CommunityMeasure
Algorithm.init(Graph)
public int number()
public java.lang.Object biggestCommunity()
public java.lang.Object smallestCommunity()
public int maxCommunitySize()
public int minCommunitySize()
public float average()
public float stdev()
public java.lang.String toString()
toString
in class java.lang.Object