项目作者: teodimoff
项目描述 :
Curves provide mapping a point from 1D to 2D hilbert space.
高级语言: Scala
项目地址: git://github.com/teodimoff/curves.git
~ Curves ~
Curves provide Hilbert mapping of a point from 1D to 2D hilbert space. This means that points closer together from one dimentional space are closer in the other. In other words it preserves locality.
Curves also provide drawing to visualize datapoints, created from hash functions.
Compile
sbt "hashdrawNative/nativeLink"
install SDL2
#install sdl2
sudo apt install libsdl2-dev libsdl2-2.0-0 -y;
#install sdl image - if you want to display images
sudo apt install libjpeg-dev libwebp-dev libtiff5-dev libsdl2-image-dev libsdl2-image-2.0-0 -y;
#install sdl mixer - if you want sound
sudo apt install libmikmod-dev libfishsound1-dev libsmpeg-dev liboggz2-dev libflac-dev libfluidsynth-dev libsdl2-mixer-dev libsdl2-mixer-2.0-0 -y;
#install sdl true type fonts - if you want to use text
sudo apt install libfreetype6-dev libsdl2-ttf-dev libsdl2-ttf-2.0-0 -y;

Examples
./example/hashdraw/native/target/scala-2.13/hashdraw-out primes
./example/hashdraw/native/target/scala-2.13/hashdraw-out murmur3
./example/hashdraw/native/target/scala-2.13/hashdraw-out hashCode 200000 10 white

File Distribution
./example/hashdraw/native/target/scala-2.13/hashdraw-out test.gif
