Code Monkey home page Code Monkey logo

population-growth-gui's Introduction

Population-Growth-GUI

Overview

This is a GUI application that draws graphs of population growth.

Two growth models, exponential and discrete logistic growth models, are offered to users. The users specify parameters for the growth model they want to use, filling out the text boxes in the GUI. A button can then be clicked to display a graph. The users are also offered an option of animation in drawing graphs with an interval of 50 ms.

Growth models

The exponential growth model makes an assumption that resources to support population growth are boundless. The exponential growth function is given by

P' = P * r,

where r is the reproductive rate, P is the preceding population size, and P' is the following population size.

By contrast, the discrete logistic growth model considers limited resources for population growth. Hence, population size has a limit called carrying capacity. As a population size approaches the carrying capacity, the population's growth slows down due to competition among individuals for scarce resources. The discrete logistic function is:

P' = P * r * (1 - P / CC),

where r is the reproductive rate, CC is the carrying capacity, P is the preceding population size, and P' is the following population size. The value of r must be no larger than 4 - an error message will pop up if the user-supplied value is larger than 4.

population-growth-gui's People

Contributors

longpham7 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.