RectangularDoubleMesh2D¶

class
halotools.mock_observables.pair_counters.
RectangularDoubleMesh2D
(x1, y1, x2, y2, approx_x1cell_size, approx_y1cell_size, approx_x2cell_size, approx_y2cell_size, search_xlength, search_ylength, xperiod, yperiod, PBCs=True, max_cells_per_dimension_cell1=50, max_cells_per_dimension_cell2=50)[source] [edit on github]¶ Bases:
object
Fundamental data structure of the
mock_observables
subpackage.RectangularDoubleMesh
is built up from two instances ofRectangularMesh
.Parameters: x1, y1 : arrays
LengthNpts1 arrays containing the spatial position of the Npts1 points.
x2, y2 : arrays
LengthNpts2 arrays containing the spatial position of the Npts2 points.
approx_x1cell_size, approx_y1cell_size : float
approximate cell sizes into which the simulation box will be divided. These are only approximate because in each dimension, the actual cell size must be evenly divide the box size.
approx_x2cell_size, approx_y2cell_size : float
An entirely separate tree is built for the Npts2 points, the structure of which is dependent on the struture of the Npts1 tree as described below.
search_xlength, search_ylength, floats, optional
Maximum length over which a pair of points will searched for. For example, if using
RectangularDoubleMesh
to compute a 3D correlation function with radial separation bins rbins = [0.1, 1, 10, 25], then in this case all the search lengths will equal 25. If usingRectangularDoubleMesh
in a projected correlation function with rp_bins = [0.1, 1, 10, 25] and pi_max = 40, then search_xlength = search_ylength = 25 and search_zlength = 40.xperiod, yperiod : floats
Length scale defining the periodic boundary conditions in each dimension. In virtually all realistic cases, these are all equal.
PBCs : bool, optional
Boolean specifying whether or not the box has periodic boundary conditions. Default is True.
max_cells_per_dimension_cell1 : int, optional
Maximum number of cells per dimension. Default is 50.
max_cells_per_dimension_cell2 : int, optional
Maximum number of cells per dimension. Default is 50.