|
|
|||
|
|
| Built-in Mathematica Symbol | Tutorials »|See Also »|More About » |
| Nearest[{elem1, elem2, ...}, x] gives the list of elemi to which x is nearest. |
| Nearest[{elem1->v1, elem2->v2, ...}, x] gives the vi corresponding to the elemi to which x is nearest. |
| Nearest[{elem1, elem2, ...}->{v1, v2, ...}, x] gives the same result. |
| Nearest[{elem1, elem2, ...}->Automatic, x] takes the vi to be successive integers i. |
| Nearest[data, x, n] gives the n nearest elemi to x. |
| Nearest[data] generates a NearestFunction[...] which can be applied repeatedly to different x. |
| DistanceFunction | Automatic | the distance metric to use |