apportionment: Round a set of numbers while maintaining its sum

[ bsd3, library, math ] [ Propose Tags ]

Round a set of numbers while maintaining its sum. According procedures are used to assign seats to parties in a parliament. You may also use it to round percentages that sum up to 100%. https://en.wikipedia.org/wiki/Apportionment_(politics)

Versions [faq] 0.0, 0.0.0.1, 0.0.0.2, 0.0.0.3
Dependencies base (==4.5.*), containers (>=0.4.2 && <0.5), utility-ht (==0.0.*) [details]
License BSD-3-Clause
Author Henning Thielemann
Maintainer haskell@henning-thielemann.de
Category Math
Home page http://hub.darcs.net/thielema/apportionment
Source repo this: darcs get http://hub.darcs.net/thielema/apportionment --tag 0.0.0.1
head: darcs get http://hub.darcs.net/thielema/apportionment
Uploaded by HenningThielemann at Wed Aug 19 09:23:41 UTC 2015
Distributions LTSHaskell:0.0.0.3, NixOS:0.0.0.3, Stackage:0.0.0.3
Downloads 1777 total (56 in the last 30 days)
Rating 1.25 (votes: 1) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs not available [build log]
All reported builds failed as of 2016-12-02 [all 7 reports]

Modules

  • Math
    • Math.Apportionment

Downloads

Maintainer's Corner

For package maintainers and hackage trustees