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
172 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
1 vote
1 answer
102 views

Consider the following region: ...
John Taylor's user avatar
  • 6,063
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
123 views

How to use Nearest inside Minimize? The following returns errors but if # - {a, b} is ...
azerbajdzan's user avatar
  • 32.6k
1 vote
1 answer
102 views

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

I have 2 sets of data. For example, ...
user8357568's user avatar
6 votes
1 answer
416 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
1 vote
1 answer
125 views

I have been trying to create a certain fractal with Mathematica but the main issue is that if I try and do something like ...
Brandon Nadel's user avatar
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
4 votes
2 answers
163 views

Imagine I have the following list ...
sam wolfe's user avatar
  • 5,023
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
0 votes
1 answer
115 views

The sample point data and codes are listed as following. The point-image tells us that the data can be divided into nine groups. However, why are they divided into two groups by ...
likehust's user avatar
  • 693
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
7 votes
2 answers
274 views

Define the following three vectors: a = {0., 0., 0.}; b = {-0.5`, 0.4330127018922193`, 0.25`}; c = {-0.5`, 0.`, 0.`}; Note that the distance from a to c is the ...
abwatson's user avatar
  • 2,093
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