dist.power.law {netmodels} | R Documentation |
Given an alpha value, calculates the first n values for the power law distribution.
dist.power.law(alpha, n)
alpha |
Alpha value of the power law distribution |
n |
Number of values to be calculate |
Vector with the first n values of the power law distribution
Domingo Vargas
calc.alpha calc.c
library(igraph) data(test.net,package="netmodels") dist <- degree(test.net) alpha <- calc.alpha(dist) dist.power.law(alpha,5)