kopia lustrzana https://github.com/martinlackner/apportionment
require Python 3.7+
rodzic
bf6f0805d7
commit
59559b40b8
|
@ -15,7 +15,7 @@ The following apportionment methods are implemented:
|
|||
- Adams
|
||||
* the quota method [1]
|
||||
|
||||
This module supports Python 2.7+ and 3.5+.
|
||||
This module supports 3.7+.
|
||||
|
||||
## How-to
|
||||
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
# Find vote distribution that produces a different apportionments
|
||||
# for each of the specified apportionment methods
|
||||
|
||||
|
||||
from __future__ import print_function
|
||||
import apportionment.methods as app
|
||||
from itertools import combinations
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
from __future__ import print_function
|
||||
import apportionment.methods as app
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
from __future__ import print_function
|
||||
import apportionment.methods as app
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
from __future__ import print_function
|
||||
import apportionment.methods as app
|
||||
|
||||
votes = [1, 3, 6, 7, 78]
|
||||
|
|
|
@ -1,13 +1,10 @@
|
|||
# Apportionment methods
|
||||
|
||||
|
||||
from __future__ import print_function, division
|
||||
from fractions import Fraction
|
||||
import math
|
||||
import numpy as np
|
||||
import string
|
||||
|
||||
|
||||
METHODS = [
|
||||
"quota",
|
||||
"largest_remainder",
|
||||
|
|
Ładowanie…
Reference in New Issue