Skip to content

Commit

Permalink
add slides images
Browse files Browse the repository at this point in the history
  • Loading branch information
leovan committed Mar 25, 2019
1 parent 85edeb0 commit 9cbf51e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@
# slides source
/*/Slides/*
!/*/Slides/*.Rmd
!/*/Slides/images/
12 changes: 12 additions & 0 deletions clustering-algorithms/Slides/images/man-and-ed-distance.asy
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
pen dps = linewidth(0.7) + fontsize(0);
defaultpen(dps);
draw((0, 100)--(0, 0), linewidth(2));
draw((0, 0)--(200, 0), linewidth(2));
draw((200, 0)--(0, 100), linewidth(2) + linetype("2 4"));
pen dotstyle = black;
dot((200, 0), dotstyle);
dot((0, 100), dotstyle);
label("$(2, 0)$", (220, 0));
label("$(0, 1)$", (0, 110));
label("Euclidean Distance", (160, 60));
label("Manhattan Distance", (0, -10));

0 comments on commit 9cbf51e

Please sign in to comment.