Karp–Flatt metric