For a halo its nearest neighbors in 3D using the kd tree.
This will calculate the nearest neighbors of a halo, using the kD tree. Returns a list of the neighbors distances and ID with format [distance,haloID].
Parameters : | haloID : integer
num_neighbors : integer
search_radius : float
|
---|
Examples
>>> neighbors = halos.nearest_neighbors_3D(0)