NearestFunction

NearestFunction[data]

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

Details and Options

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:

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

Scope  (2)

See Also

Nearest  InterpolatingFunction  FindClusters

Tutorials

Introduced in 2007
(6.0)