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.01
by default.rpmax :
float
, optionalMaximum
rp
(perpendicular distance) to search for and return pairs. This variable is set to10
by default.nrpbins :
int
, optionalTotal number of
rp
bins. This variable is set to10
by default.pimax :
float
, optionalMaximum parallel separation distance to search for and return pairs. This variable is set to
20
by default.double_count :
bool
, optionalIf True, the function double counts for each galaxy pairs. Useful for the
2-halo Quenched Fractions
calculations.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
.