#### Previous topic

medpy.iterators.patchwise.CentredPatchIteratorOverlapping.next

#### Next topic

medpy.neighbours.knn.mkneighbors_graph

# Neighbours (medpy.neighbours)¶
## Patch-wise medpy.neighbours.knn¶
K-nearest-neighbours based methods. The interfaces are loosely based on the sklear.neighbours methods. The methods can be considered complementary to the ones found there.
 mkneighbors_graph(observations, …[, mode, …]) Computes the (weighted) graph of mutual k-Neighbors for observations. pdist(objects, dmeasure[, diagval]) Compute the pair-wise distances between arbitrary objects.