get_positions

cosmic.sample.cmc.elson.get_positions(N, r_max_cluster, gamma)[source]

This one’s easy: the mass enclosed function is just the CDF of the mass density, so just invert that, and you’ve got positions.