|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.uci.ics.jung.statistics.DegreeDistributions
public class DegreeDistributions
Set of general-purpose functions for analyzing the degree distribution of a set of vertices (normally the complete set of vertices associated with a graph). These include:
| Constructor Summary | |
|---|---|
DegreeDistributions()
|
|
| Method Summary | |
|---|---|
static DoubleArrayList |
getDegreeValues(Set vertices)
Given a set of vertices, this function returns a list of degrees. |
static Histogram |
getIndegreeHistogram(Set vertices,
double min,
double max,
int numBins)
Generates a histogram of the indegree distribution for a set of vertices |
static DoubleArrayList |
getIndegreeValues(Set vertices)
Given a set of vertices, this function returns a list of indegrees. |
static Histogram |
getOutdegreeHistogram(Set vertices,
double min,
double max,
int numBins)
Generates a histogram of the outdegree distribution for a set of vertices |
static DoubleArrayList |
getOutdegreeValues(Set vertices)
Given a set of vertices, this function returns a list of outdegrees. |
static void |
saveDistribution(Histogram histogram,
String file)
Saves the empirical degree distribution to a file in the ascii flat file where each line has the following format: |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DegreeDistributions()
| Method Detail |
|---|
public static DoubleArrayList getDegreeValues(Set vertices)
vertices - the vertices whose degrees are to be analyzed
public static DoubleArrayList getOutdegreeValues(Set vertices)
vertices - the vertices whose outdegrees are to be analyzed
public static DoubleArrayList getIndegreeValues(Set vertices)
vertices - the vertices whose indegrees are to be analyzed
public static Histogram getOutdegreeHistogram(Set vertices,
double min,
double max,
int numBins)
vertices - the set of vertices to be analyzedmin - the minimum value of the data to be binnedmax - the maximum value of the data to be binnednumBins - the number of bins to be created
public static Histogram getIndegreeHistogram(Set vertices,
double min,
double max,
int numBins)
vertices - the set of vertices to be analyzedmin - the minimum value of the data to be binnedmax - the maximum value of the data to be binnednumBins - the number of bins to be created
public static void saveDistribution(Histogram histogram,
String file)
histogram - a histogram representing a degree distributionfile - the name of the file where the data is to be saved
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||