Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/niaggar/dynamical-galton-go
A Galton Board simulation written in Golang to demonstrate the central limit theorem. The project simulates balls bouncing off pegs arranged in different patterns, allowing exploration of various distributions based on peg configurations.
https://github.com/niaggar/dynamical-galton-go
go golang physics simulation statistics
Last synced: 2 months ago
JSON representation
A Galton Board simulation written in Golang to demonstrate the central limit theorem. The project simulates balls bouncing off pegs arranged in different patterns, allowing exploration of various distributions based on peg configurations.
- Host: GitHub
- URL: https://github.com/niaggar/dynamical-galton-go
- Owner: niaggar
- License: mit
- Created: 2024-09-28T23:08:09.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-10-18T01:18:04.000Z (3 months ago)
- Last Synced: 2024-10-20T12:29:23.274Z (3 months ago)
- Topics: go, golang, physics, simulation, statistics
- Language: Jupyter Notebook
- Homepage:
- Size: 1.96 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Galton Board with Golang
This is a Galton Board simulation written in Golang. The Galton Board is a device that demonstrates the central limit theorem. It consists of a board with pegs arranged in a triangular pattern. Balls are dropped from the top and bounce off the pegs until they reach the bottom. The balls are collected in bins at the bottom, and the distribution of balls in the bins approximates a normal distribution.
The idea behind this project is to create a simulation of the Galton Board and find differents distributions that can be obtained by changing the pegs' positions.
## Pegs Distribution
Peg distributions:
- **Uniform:**
- 0: Uniform- **Horizontal Distribution:**
- 1: Logarithmic
- 2: Gaussian
- 3: Inverse Gaussian
- 4: Sinusoidal- **Vertical Distribution:**
- 5: Logarithmic
- 6: Gaussian
- 7: Inverse Gaussian
- 8: Sinusoidal