Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #4627

Re: With Nearest

From Yves Klett <yves.klett@googlemail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: With Nearest
Date 2011-08-28 08:08 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j3ct2g$5m3$1@smc.vnet.net> (permalink)
References <j3anc3$hdo$1@smc.vnet.net>

Show all headers | View raw


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}};

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

With Nearest graser <graser@gmail.com> - 2011-08-27 12:19 +0000
  Re: With Nearest Yves Klett <yves.klett@googlemail.com> - 2011-08-28 08:08 +0000
  Re: With Nearest Peter Pein <petsie@dordos.net> - 2011-08-28 08:11 +0000
  Re: With Nearest Ray Koopman <koopman@sfu.ca> - 2011-08-29 07:48 +0000
  Re: With Nearest Daniel Lichtblau <danl@wolfram.com> - 2011-08-30 00:01 +0000

csiph-web