Skip to content

trvrb/coaltrace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 

Repository files navigation

<script src="processing.min.js"></script>

Can't load canvas

This is a simulation of the basic demographic / genealogical process. Individuals are born and individuals die. This causes lineages to branch and to disappear, and causes the population to share a common ancestor at some time in the past. The coalescent provides a mathematical description of these patterns of ancestry.

Individuals are represented as circles. Layout is taken care of through simple physics. Each individual is given a charge and Coulomb's law is used to for repulsion. The edges of the screen are also charged.

Individuals leave a trace of where they used to be. I was pleasantly surprised to have the physical location of a lineage cleanly reveal its genealogical history.

Press H to bring up a listing of commands.

About

Simulating genealogies using charged particles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages