randomly_resort

halotools.empirical_models.randomly_resort(x, sigma, seed=None)[source]

Function randomizes the entries of x with an input level of stochasticity sigma.

Parameters:
xndarray

Input array of shape (npts, ) that will be randomly reordered

sigmafloat

Input level of stochasticity in the randomization

seedint, optional

Seed used to randomly add noise

Returns:
noisy_xndarray

Array of shape (npts, )