NearestFunction

NearestFunction[data]

represents a function whose values give the elements closest to an element that is supplied.

Details

Examples

open allclose all

Basic Examples  (1)

Generate a NearestFunction:

In[1]:=
Click for copyable input
Out[1]=

Apply to a single element:

In[2]:=
Click for copyable input
Out[2]=

Apply to several elements using Map:

In[3]:=
Click for copyable input
Out[3]=

Apply to several elements directly:

In[4]:=
Click for copyable input
Out[4]=

Scope  (3)

See Also

Nearest  InterpolatingFunction  FindClusters

Tutorials

Introduced in 2007
(6.0)