Compute distance of a given point to its nearest neighbor in the functional space and the identity of the nearest neighbor
Useful links