Skip to content

About

tiny stochastic project for the random walk implementation with raylib

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

19 Commits

Folders and files

Repository files navigation

Overview

  • reworked the SDL implementation and used a raylib one with lévy: → lévy flight is a mathematic pattern that imitates the hunting route from predators. Its using the power law distribution for getting the random jump $S$

$$ S = U-\frac{1}{\gamma} $$

Run

brew install raylib
git clone https://github.com/fivawyr/tiny_randomwalk.git
cd # where ever you clone this repo
╰─ g++ code.cpp -o randomwalk \
    -std=c++17 \
    -I/opt/homebrew/include \
    -L/opt/homebrew/lib \
    -lraylib
./walk

Screenshot from processing.js from khan academy (webbrowser version)

Screenshot from the raylig with lévy implementation

Screenshot

Old SDL random walk implementation without lévy walk

Ressources

About

tiny stochastic project for the random walk implementation with raylib

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages