pairwise_distance_rp¶
-
cosmo_utils.mock_catalogues.pair_counters.pairwise_distance_rp()¶ Cython engine for returning pairs of points separated in projected radial bins with an observer at (0,0,0).
Parameters: coord_1 : array_like, shape (N,3)
Cartesian corodinates <x, y, z> of
sample 1.coord_2 : array_like, shape (N,3)
Cartesian corodinates <x, y, z> of
sample 2.rpmin :
float, optionalMinimum
rp(perpendicular distance) to search for and return pairs. This variable is set to0.01by default.rpmax :
float, optionalMaximum
rp(perpendicular distance) to search for and return pairs. This variable is set to10by default.nrpbins :
int, optionalTotal number of
rpbins. This variable is set to10by default.pimax :
float, optionalMaximum parallel separation distance to search for and return pairs. This variable is set to
20by default.double_count :
bool, optionalIf True, the function double counts for each galaxy pairs. Useful for the
2-halo Quenched Fractionscalculations.Returns: rp_ith_arr :
numpy.ndarray, shape (M, 3)- Three-dimensional array of M-elements containing:
rp: bin number to which galaxy pair belongs.i_ind: indices of 0-indexed indices insample 1.j_ind: indices of 0-indexed indices insample 2.