Group Abstract Group Abstract

Message Boards Message Boards

0
|
3.3K Views
|
4 Replies
|
1 Total Like
View groups...
Share
Share this post:

Nearest neighbor problem

Posted 12 years ago
POSTED BY: eft rsd
4 Replies

The entered point is in the list and is, obviously, the nearest one to itself. If you want three neighbors not the same as the entered point, request four and drop the first one.

POSTED BY: Daniel Lichtblau
Posted 12 years ago

Well, I've managed to solve the problem of combining Do with Nearest, but I still get the same point I am looking for its nearest neighbors appearing as its own neighbor.. How to stop that?

POSTED BY: eft rsd

Try placing a semicolon between the Do and the Table. Without a termination within a compound statement, white space is interpreted as multiplication of the two statements.

POSTED BY: Daniel Lichtblau
Posted 12 years ago

Using a semicolon did not change anything.. Is it possible that Do does not work with Nearest???

POSTED BY: eft rsd
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard