### Navigation

- index
- modules |
- modules |
- SciPy v0.9 Reference Guide (DRAFT) »

# scipy.spatial.KDTree.__init__

`KDTree.``__init__`(data, leafsize=10)

  Construct a kd-tree.

  Parameters : | data : array_like, shape (n,k) The data points to be indexed. This array is not copied, and so modifying this data will result in bogus results. leafsize : positive int The number of points at which the algorithm switches over to brute-force.

### Navigation

- index
- modules |
- modules |
- SciPy v0.9 Reference Guide (DRAFT) »