|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gephi.statistics.plugin.DegreeDistribution
public class DegreeDistribution
This class measures how closely the degree distribution of a network follows a power-law scale. An alpha value between 2 and 3 implies a power law.
Constructor Summary | |
---|---|
DegreeDistribution()
|
Method Summary | |
---|---|
boolean |
cancel()
Cancel the task. |
void |
execute(Graph graph,
AttributeModel attributeModel)
|
void |
execute(GraphModel graphModel,
AttributeModel attributeModel)
Calculates the degree distribution for this network. |
double |
getCombinedPowerLaw()
|
double |
getInPowerLaw()
|
double |
getOutPowerLaw()
|
java.lang.String |
getReport()
Returns an HTML string that displays the statistics result. |
boolean |
isDirected()
|
void |
leastSquares(double[] dist,
double[] res)
Fits the logarithm distribution/degree to a straight line of the form: a + b *x which is then interrpreted as a*x^y in the non-logarithmic scale |
void |
setDirected(boolean pDirected)
|
void |
setProgressTicket(ProgressTicket pProgressTicket)
Set the progress ticket for the long task. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DegreeDistribution()
Method Detail |
---|
public void setDirected(boolean pDirected)
pDirected
- Indicates the metric's interpretation of this network.public boolean isDirected()
public double getCombinedPowerLaw()
public double getInPowerLaw()
public double getOutPowerLaw()
public void execute(GraphModel graphModel, AttributeModel attributeModel)
execute
in interface Statistics
graphModel
- attributeModel
- The elements attributes, and where to write table resultspublic void execute(Graph graph, AttributeModel attributeModel)
public void leastSquares(double[] dist, double[] res)
dist
- The distribution of node degrees to fit to a logarithmized straight linepublic java.lang.String getReport()
Statistics
getReport
in interface Statistics
public boolean cancel()
LongTask
true
if the task has been sucessfully cancelled, false
otherwise.
cancel
in interface LongTask
public void setProgressTicket(ProgressTicket pProgressTicket)
LongTask
setProgressTicket
in interface LongTask
progressTicket
- Sets the progress meter for the metric.
|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |