power_law_distribution_function¶
- clustertools.util.recipes.power_law_distribution_function(n, alpha, xmin, xmax)[source]¶
Generate points from a power-law distribution function
- Parameters:
- nint
number of points
- alphafloat
power-law slope of distribution function
- xmin,xmaxfloat
minimum and maximum values of distribution
- Returns:
- xfloat
array of values drawn from distribution