calc.alpha {netmodels} | R Documentation |
This function calculates the alpha value for the power law distribution that best matches the degree distribution of the network.
Please note this functions is designed to work with discrete power law distributions.
calc.alpha(dist)
dist |
Degree distribution of the network |
This functions uses the function power.law.fit of the igraph library. This function calculates the alpha value an returns a MLE class object.
The alpha value is returned.
Domingo Vargas
library(igraph) data(test.net,package="netmodels") dist <- degree(test.net) alpha <- calc.alpha(dist)