Distance is a numerical description of how far apart objects are.
Pdist computes pairwise distance between pairs of objects in m-by-n data matrix in MATLAB.
|Much faster then||
"Also note that in my code above manually calculating the euclidean distance is much faster then calling pdist"
from question "How to select a uniformly distributed subset of a partially dense dataset?"