PRODUCTS
Mathematica
Mathematica Home Edition
Mathematica for Students
Mathematica for the Classroom
grid
Mathematica
Wolfram Lightweight Grid Manager
web
Mathematica
Mathematica Player
(free download)
Mathematica Player Pro
Wolfram
Workbench
Mathematica
Applications
SOLUTIONS
Industry
Chemical Engineering
Image Processing
Mechanical Engineering
Petroleum Engineering
Environmental Sciences
Bioinformatics
Data Analysis and Mining
Financial Risk Management
Statistics
Software Engineering
More...
Education
Higher Education
Precollege Education
Students
Technology
Interactive Deployment
High-Performance and Parallel Computing (HPC)
See Also: Technology Guide
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
FOR USERS
All User Resources
Product Registration
Technical Support
Customer Service
Developer Support
Does My Site Have a License?
Free Seminars
Learning Center
Training
Custom Group Seminars
Documentation & Examples
Tutorial Screencasts
Video Gallery
Demonstrations Project
Education Portal
Student Resources
COMPANY
About Wolfram Research
News & Events
Wolfram Blog
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
Wolfram|Alpha
Demonstrations Project
Wolfram Blog
MathWorld
Integrator
Wolfram Functions Site
Mathematica Journal
Wolfram Library Archive
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
Mathematica
>
Data Manipulation
>
Numerical Data
>
Exploratory Data Analysis
>
Mathematica
>
Data Manipulation
>
Statistics
>
Exploratory Data Analysis
>
Mathematica
>
Mathematics and Algorithms
>
Statistics
>
Exploratory Data Analysis
>
Built-in
Mathematica
Symbol
Using Nearest
Partitioning Data into Clusters
Tutorials »
|
Norm
NormFunction
EuclideanDistance
EditDistance
JaccardDissimilarity
SimilarityRules
See Also »
|
Exploratory Data Analysis
Distance and Similarity Measures
New in 6.0: Statistics
More About »
DistanceFunction
DistanceFunction
is an option for functions such as
Nearest
that specifies the distance value to assume between any two specified points.
MORE INFORMATION
DistanceFunction
->
f
specifies that the distance assumed between
x
and
y
should be
f
[
x
,
y
]
.
EXAMPLES
CLOSE ALL
Basic Examples
(2)
Find points closest to
using
ChessboardDistance
:
In[1]:=
Out[1]=
Use the default distance:
In[2]:=
Out[2]=
Find clusters in Boolean data using
DiceDissimilarity
:
In[1]:=
In[2]:=
Out[2]=
Clusters obtained with the default distance function:
In[3]:=
Out[3]=
SEE ALSO
Norm
NormFunction
EuclideanDistance
EditDistance
JaccardDissimilarity
SimilarityRules
TUTORIALS
Using Nearest
Partitioning Data into Clusters
MORE ABOUT
Exploratory Data Analysis
Distance and Similarity Measures
New in 6.0: Statistics
New in 6