MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: With Nearest

  • To: mathgroup at smc.vnet.net
  • Subject: [mg121099] Re: With Nearest
  • From: Yves Klett <yves.klett at googlemail.com>
  • Date: Sun, 28 Aug 2011 04:04:56 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <j3anc3$hdo$1@smc.vnet.net>

Hi,

what about

AA = {{1.3, 1.5}, {21.5, 23.6}, {10, 19}};
Nearest[AA, 20, DistanceFunction -> (Norm[#2[[2]] - #1] &)]

which may be slow for large datasets.

Regards,
Yves

Am 27.08.2011 14:19, schrieb graser:
> AA = {{1.3, 1.5}, {21.5, 23.6}, {10, 19}};




  • Prev by Date: Re: FindRoot repeatedly evaluating function
  • Next by Date: Re: With Nearest
  • Previous by thread: Re: With Nearest
  • Next by thread: Re: With Nearest