kbaird / consensus

An Erlang library pertaining to consensus democracy, including Condorcet voting

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

consensus

Build Status

Code Climate

Ebert

An OTP library implementing consensus-oriented political functions, including the Schulze voting method, the Gallagher Index, the d'Hondt/Jefferson Method, various Borda Counts and the Webster/Sainte-Laguë Method.

This code is heavily based on ideas found in Patterns of Democracy by Arend Lijphart.

The main non-trivial Condorcet test file uses the TN Capital example from Wikipedia.

Build

$ rebar3 compile

Eunit

$ rebar3 eunit

Dialyzer

$ rebar3 dialyzer

Elvis

Download elvis, then

$ elvis rock

About

An Erlang library pertaining to consensus democracy, including Condorcet voting

License:Other


Languages

Language:Erlang 100.0%