[Numpy-discussion] Proposal: scipy.spatial
Wed Oct 1 01:10:13 CDT 2008
On Wed, Oct 1, 2008 at 1:26 AM, Gael Varoquaux
> Absolutely. I just think k should default to None, when
> distance_upper_bound is specified. k=None could be interpreted as k=1
> when distance_uppper_bound is not specified.
Why not expose the various possibilities through different names?
# nearest k points (possibly fewer)
# all points within given distance
#nearest k points within given distance (possibly fewer)
query(pt, k, distance)
Few people will use the last form, but it's useful nevertheless.
Nathan Bell firstname.lastname@example.org
More information about the Numpy-discussion