Skip to content

JosuaKrause/searchspace

Repository files navigation

Visualization for Various Similarity Functions

The euclidean distance forming voronoi regions.

This visualization shows distances of various similarity functions in a 2D vector space. Choose the distance function from the menu or use the number keys to quickly switch between them. You can also add or remove points interactively. Boundaries of closest neighbor regions are shown in red. Read more about the visualization on Medium.

The live version can be found here.

Running Locally

The whole repo can be served as is. There is no build step needed. For convenience the make run-web command exists to start a local file server.

Converting Videos

After recording a video using the Record button it is saved in the webm format. If a gif is needed, the command make convert INPUT=~/Downloads/video.webm converts the specified webm video and places the gif version into the same folder. ffmpeg is required.

Contributing

If you encounter any bugs or problems, feel free to file an issue.