powerbox.powerbox.PowerBox.create_discrete_sample

PowerBox.create_discrete_sample(nbar, randomise_in_cell=True, min_at_zero=False, store_pos=False, seed=None)[source]

Assuming that the real-space signal represents an over-density with respect to some mean, create a sample of tracers of the underlying density distribution.

Parameters:
nbar : float

Mean tracer density within the box.