HeinDuijf / BoundedConfidenceModel

This is a repository on the bounded confidence model of opinion dynamics, as first put forward by Hegselmann & Krause. This repository contains code for the model and for some visualizations.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Opinion Dynamics: The Bounded Confidence Model

This is a repository on the bounded confidence model of opinion dynamics, as first put forward by Hegselmann & Krause. This repository contains code for the model and for some visualizations.

A picture of an example of a run of a bounded confidence model

1. Setup

To run the project, you first need to install the required packages

pip install -r requirements.txt

2. The model model.py

The class BoundedConfidence in the module model.py is an implementation of the bounded confidence model.

3. Visualization visualize.py

The method visualize in the module visualize.py can be used to visualize the run of a bounded confidence model.

4. Figures figures.py

The module produces all the images that are relevant to the paper.

A. Licence and citation

This repository accompanies ongoing research. In the meantime, please cite as follows:

Released under the MIT licence.

About

This is a repository on the bounded confidence model of opinion dynamics, as first put forward by Hegselmann & Krause. This repository contains code for the model and for some visualizations.

License:MIT License


Languages

Language:Python 100.0%