Skip to content

Instantly share code, notes, and snippets.

@MartinThoma
Created August 29, 2017 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MartinThoma/8ea9d4013f5e782fe8979c3271f6d761 to your computer and use it in GitHub Desktop.
Save MartinThoma/8ea9d4013f5e782fe8979c3271f6d761 to your computer and use it in GitHub Desktop.
x = (1/3, 2/3)
y = (1/2, 1/2)
z = (1/2, 1/2)
d(x, y) = 1 - (1/3 + 1/2)
= 1/6
d(x, z) = d(x, y)
d(y, z) = 0
d(x, z) = 1/6 = 1/6 = d(x, y) + d(x, z)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment