On distances between point patterns and their applications