Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Data Manipulation > Numerical Data > Exploratory Data Analysis >
Mathematica > Data Manipulation > Statistics > Exploratory Data Analysis >
Mathematica > Mathematics and Algorithms > Statistics > Exploratory Data Analysis >

NearestFunction

NearestFunction[data]
represents a function whose values give the elements closest to an element that is supplied.
  • NearestFunction[...][x] gives the element closest to a particular element x.
Generate a NearestFunction:
Apply to a single element:
Apply to several elements:
Give the 3 nearest elements:
New in 6
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team