Set random link capacities according to a power-law probability density function.
The probability that a capacity is assigned to a link is:
Where is the set of allowed capacity, i.e. the capacities
argument
Note that this capacity assignment differs from set_capacities_random_zipf because, while in Zipf assignment the power law relationship is between the rank of a capacity and the probability of being assigned to a link, in this assignment, the power law is between the value of the capacity and the probability of being assigned to a link.
Parameters : | topology : Topology
capacities : list
capacity_unit : str, optional
|
---|