dist.power.law {netmodels}R Documentation

Power law distribution

Description

Given an alpha value, calculates the first n values for the power law distribution.

Usage

dist.power.law(alpha, n)

Arguments

alpha Alpha value of the power law distribution
n Number of values to be calculate

Value

Vector with the first n values of the power law distribution

Author(s)

Domingo Vargas

See Also

calc.alpha calc.c

Examples


library(igraph)
data(test.net,package="netmodels")
dist <- degree(test.net)
alpha <- calc.alpha(dist)
dist.power.law(alpha,5)


[Package netmodels version 0.2 Index]