Giter Club home page Giter Club logo

schellings-segregation-model's Introduction

Schellings-Segregation-Model

This is a simulation of Schelling's Segregation Model from the 70's. In the model we have 2 types of people which are represented by red and blue cells in a grid. Green cells indicate no one is living there. In the model, similar to real life, blue people would like a certain percentage of their neighbours to be blue and the same goes for red. If the percentage of similar neighbours drops below their threshhold, the person will move to an empty space (green) in the hopes of becoming satisfied with their new location.

Every tick of the simulation, all the unsatisfied people (cells) move. The simulation terminates when all cells are satisfied.

The blue people that blue citizens want to be beside is called the ratio of similarity, this can be varied by the slider given. Dimensions can also be changed using a slider.

The simulation can be used to show how a population with basic wants (the want to be around a certain proportion of similar humans) can end up segregated despite innocent intentions.

To interact with this simulation simply click https://hymanimy.github.io/Schellings-Segregation-Model/ or clone the repository and run the index.html file

schellings-segregation-model's People

Contributors

hymanimy 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.