Skip to main content

Questions tagged [nearest]

Questions on the usage of Nearest and creating a custom distance function for it; also on NearestNeighborGraph, RegionNearest, GeoNearest and related concepts.

3 votes
1 answer
171 views

Is there a smart way to get nearest (given number num to given element elem) elements of list, except element itself? This works ...
lesobrod's user avatar
  • 2,590
0 votes
0 answers
107 views

Is there any analog of Nearest that is compilable? ...
John Taylor's user avatar
  • 6,063
1 vote
1 answer
101 views

I'm trying to use Nearest as a function to minimize over: a toy example is ...
Adam's user avatar
  • 4,293
6 votes
1 answer
415 views

I have a sorted list of floats of length n and an n x n list of lists, where each nested ...
az123p's user avatar
  • 239
2 votes
2 answers
202 views

I have an interpolating parametric function (solution of a set of differential equations) and I have an external point. I would like to find the minimal distance between this point and the ...
VDF's user avatar
  • 543
1 vote
1 answer
300 views

I would like to find the subset of points from a set of d-dimensional points that defines the smallest bounding simplex around a given point. For example, given a set of 3-dimensional points S1 and ...
Attila Sragli's user avatar
3 votes
1 answer
224 views

I'm trying to figure out to deal with (and design) .stl files within Mathematica. As an example, I would like to generate a FCC lattice without the atoms (but connecting all nearest neighbours), and ...
Letshin's user avatar
  • 495
1 vote
2 answers
288 views

I need to find the shortest distance between the two regions and the two points of the shortest distance, but the following code cannot achieve this requirement: ...
A little mouse on the pampas's user avatar

15 30 50 per page