scipy 1.10.1 Pypi GitHub Homepage
Other Docs

NotesParametersReturns
KDTree.count_neighbors(self, other, r, p=2.0, weights=None, cumulative=True)

Notes

            <Unimplemented 'footnote' '.. [1] Gray and Moore,\n       "N-body problems in statistical learning",\n       Mining the sky, 2000,\n       https://arxiv.org/abs/astro-ph/0012333'>
           
            <Unimplemented 'footnote' '.. [2] Landy and Szalay,\n       "Bias and variance of angular correlation functions",\n       The Astrophysical Journal, 1993,\n       http://adsabs.harvard.edu/abs/1993ApJ...412...64L'>
           
            <Unimplemented 'footnote' '.. [3] Sheth, Connolly and Skibba,\n       "Marked correlations in galaxy formation models",\n       Arxiv e-print, 2005,\n       https://arxiv.org/abs/astro-ph/0511773'>
           
            <Unimplemented 'footnote' '.. [4] Hawkins, et al.,\n       "The 2dF Galaxy Redshift Survey: correlation functions,\n       peculiar velocities and the matter density of the Universe",\n       Monthly Notices of the Royal Astronomical Society, 2002,\n       http://adsabs.harvard.edu/abs/2003MNRAS.346...78H'>
           
            <Unimplemented 'footnote' '.. [5] https://github.com/scipy/scipy/pull/5647#issuecomment-168474926'>
           

Parameters

other : KDTree
r : float or one-dimensional array of floats
p : float, optional
weights : tuple, array_like, or None, optional
cumulative : bool, optional

Returns

result : scalar or 1-D array

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /scipy/spatial/_kdtree.py#656
type: <class 'function'>
Commit: