Giter Site home page Giter Site logo

turnout-election-schemes's People

Contributors

annashipman avatar drmaciver avatar evilstreak avatar jaylett avatar stevemarshall avatar whilefalse avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

turnout-election-schemes's Issues

Under STV tied candidates are elected in order they were given

All candidates who have met or exceeded the quota are provisionally elected at the same time. The candidates are elected in descending order of vote value, so that the candidate with the highest surplus in a round is shown as elected first. If two candidates who have met the quota have the same number of votes they will be added to the elected in the order they were passed to the scheme in, rather than in a random order.

The random generator use in _candidate_with_highest_surplus should instead be in _provisionally_elect_candidates so that ties are broken at the time the candidate is elected instead of when their surplus is distributed.

Make quota explicit

In documentation or tests or both, we should make it clear that we are using the Droop quota, and what it is.

Tests should be documentation

We've done a bit of that, but there are some things we haven't done. The comments below refer to STV particularly.

  • Would be good if you could read through them for documentation
  • If a candidate drops out midway, the results should be the same as if they never existed. We should have a test for that.
  • According to the paper, the tally of exhausted votes is recorded. We need a test to make that explicit and/or a test example where the quota changes.

We need a README

It should say what this is, a brief guide on how to use it, and point to github & the open mailing list for people to contribute. (I think it's okay at this stage to assume that people can use a disposable or protected email address to get in touch if they have reason to be private about their identity, and that is sufficient for our purposes in this codebase.)

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.