return index of all points in an epsilon neighborhood of a vector
Syntax
ind = find(v,w) % find closest point out of v to w
ind = find(v,w,epsilon) % find all points out of v in an epsilon neighborhood of w
ind = find(v,w,k) % find k nearest points out of v to wInput
| v, w | orientation |
| epsilon_or_k | epsilon or k (see below), depending on what the user wants |
| epsilon | double |
| k | int32 |
Output
| ind | numel(w) x k array of *distinct* indices into v for k nearest neighbors, |
| numel(w) x numel(v) sparse logical incidence matrix for region search | |
| d | numel(w) x k double array for k nearest neighbors, |
| numel(w) x numel(v) sparse double array for region search (0 whenever ind is 0) | |
| Note that antipodal symmetry is taken from v.antipodal, there is no 'antipodal' option. | |