We deliver solutions for the AI eraâcombining symbolic computation, data-driven insights and deep technology expertise.
NearestFunction[data]
represents a function whose values give the elements closest to an element that is supplied.
Details Examplesopen allclose all Basic Examples (1)Generate a NearestFunction:
Apply to several elements using Map:
Apply to several elements directly:
Scope (3)Give the elements within radius 2:
Give the at most 3 nearest elements within radius 2:
When NearestFunction is directly applied to multiple points, results are computed in parallel threads if possible:
When the NearestFunction is applied to the points separately, results are computed serially:
Wolfram Research (2007), NearestFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/NearestFunction.html. TextWolfram Research (2007), NearestFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/NearestFunction.html.
CMSWolfram Language. 2007. "NearestFunction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/NearestFunction.html.
APAWolfram Language. (2007). NearestFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NearestFunction.html
BibTeX@misc{reference.wolfram_2025_nearestfunction, author="Wolfram Research", title="{NearestFunction}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/NearestFunction.html}", note=[Accessed: 12-July-2025 ]}
BibLaTeX@online{reference.wolfram_2025_nearestfunction, organization={Wolfram Research}, title={NearestFunction}, year={2007}, url={https://reference.wolfram.com/language/ref/NearestFunction.html}, note=[Accessed: 12-July-2025 ]}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4