For a halo its nearest neighbors in 2D using the kd tree.
This will strip a dimension from consideration in the kD-tree, and then calculate all the nearest projected neighbors of a halo. Returns a list of the neighbors distances and ID with format [distance,haloID].
Parameters : | haloID : int
num_neighbors : int
search_radius : float
proj_dim : int
|
---|
Examples
>>> neighbors = halos.nearest_neighbors_2D(0)