|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.uci.ics.jung.statistics.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 Histogram |
getIndegreeHistogram(java.util.Set vertices,
double min,
double max,
int numBins)
Generates a histogram of the indegree distribution for a set of vertices |
static cern.colt.list.DoubleArrayList |
getIndegreeValues(java.util.Set vertices)
Given a set of vertices, this function returns a list of indegress |
static Histogram |
getOutdegreeHistogram(java.util.Set vertices,
double min,
double max,
int numBins)
Generates a histogram of the outdegree distribution for a set of vertices |
static cern.colt.list.DoubleArrayList |
getOutdegreeValues(java.util.Set vertices)
Given a set of vertices, this function returns a list of outdegress |
static void |
saveDistribution(Histogram histogram,
java.lang.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 |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DegreeDistributions()
| Method Detail |
public static cern.colt.list.DoubleArrayList getOutdegreeValues(java.util.Set vertices)
vertices - the vertices whose outdegrees are to be analyzed
public static cern.colt.list.DoubleArrayList getIndegreeValues(java.util.Set vertices)
vertices - the vertices whose indegrees are to be analyzed
public static Histogram getOutdegreeHistogram(java.util.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(java.util.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,
java.lang.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 | ||||||||||