-- sqrt(). So, "distances" below really means "distances squared."
distances = V.map ((dot p) . center) candidates
shortest_distance = V.minimum distances
-- sqrt(). So, "distances" below really means "distances squared."
distances = V.map ((dot p) . center) candidates
shortest_distance = V.minimum distances