项目作者: teodimoff

项目描述 :
Curves provide mapping a point from 1D to 2D hilbert space.
高级语言: Scala
项目地址: git://github.com/teodimoff/curves.git
创建时间: 2021-03-07T15:04:06Z
项目社区:https://github.com/teodimoff/curves

开源协议:Apache License 2.0

下载


~ 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

  1. sbt "hashdrawNative/nativeLink"

install SDL2

taken form: here

  1. #install sdl2
  2. sudo apt install libsdl2-dev libsdl2-2.0-0 -y;
  3. #install sdl image - if you want to display images
  4. sudo apt install libjpeg-dev libwebp-dev libtiff5-dev libsdl2-image-dev libsdl2-image-2.0-0 -y;
  5. #install sdl mixer - if you want sound
  6. sudo apt install libmikmod-dev libfishsound1-dev libsmpeg-dev liboggz2-dev libflac-dev libfluidsynth-dev libsdl2-mixer-dev libsdl2-mixer-2.0-0 -y;
  7. #install sdl true type fonts - if you want to use text
  8. sudo apt install libfreetype6-dev libsdl2-ttf-dev libsdl2-ttf-2.0-0 -y;

Examples

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

File Distribution

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