Skip to content

lseemann/malthus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Malthus is a simple, unscientific model of population growth over a single year. For these purposes, it is a population of rats.

Four variables can be controlled:

  • Weeks until fertility
  • Weeks between litters
  • Size of litters
  • Weeks until death

Two tables are generated: A week-by-week table of total rats, sorted by generation, and a week-by-week table of new rats, sorted by generation.

Each rat is assigned gender randomly, so results can vary.

##Caveats##

  • The real world is much more complex. It's unlikely that any biologist would approve of this model.
  • Each rat exists at a lightweight Javascript object. After 5 million rats or so, this has the potential to crash browsers.

##Demos##

About

A population growth modeler

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published