Skip to content

Commit

Permalink
inverse transform sampling method for making discrete powelaw samples.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziaeemehr committed Aug 3, 2024
1 parent 1e2766d commit 5ae75a2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion netsci/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,10 @@ def generate_power_law_discrete_its(alpha:float, k_min:int, k_max:int, size:int=

"""
Generates the power law discrete distributions using the inverse transform sampling method.
References
References
-----------
Devroye, L. (1986). "Non-Uniform Random Variate Generation." Springer-Verlag, New York.
Parameters
Expand Down

0 comments on commit 5ae75a2

Please sign in to comment.