Basic Constants

poisson_approval.constants.basic_constants.ANTI_PLURALITY = 'Anti-plurality'

Anti-Plurality.

Type

str

poisson_approval.constants.basic_constants.APPROVAL = 'Approval'

Approval.

Type

str

poisson_approval.constants.basic_constants.BALLOTS_WITHOUT_INVERSIONS = ['a', 'b', 'c', 'ab', 'ac', 'bc']

All possible ballots, without inversions. I.e. there is 'ab' but not the equivalent 'ba'.

Type

list of str

poisson_approval.constants.basic_constants.BALLOTS_WITHOUT_INVERSIONS_SORTED_ALPHABETICAL = ['a', 'ab', 'ac', 'b', 'bc', 'c']

All possible ballots, without inversions. I.e. there is 'ab' but not the equivalent 'ba'. The list is sorted alphabetically.

Type

list of str

poisson_approval.constants.basic_constants.BALLOTS_WITH_INVERSIONS = ['a', 'b', 'c', 'ab', 'ac', 'bc', 'ba', 'ca', 'cb']

All possible ballots, with inversions. I.e. there are both 'ab' and 'ba'.

Type

list of str

poisson_approval.constants.basic_constants.CANDIDATES = ['a', 'b', 'c']

All candidates.

Type

list of str

poisson_approval.constants.basic_constants.PAIRS_INVERTED = ['ba', 'ca', 'cb']

All pairs of candidates in reverse alphabetical order. I.e. there is 'ba' but not the equivalent 'ab'.

Type

list of str

poisson_approval.constants.basic_constants.PAIRS_WITHOUT_INVERSIONS = ['ab', 'ac', 'bc']

All pairs of candidates, without inversion. I.e. there is 'ab' but not the equivalent 'ba'.

Type

list of str

poisson_approval.constants.basic_constants.PAIRS_WITH_INVERSIONS = ['ab', 'ac', 'bc', 'ba', 'ca', 'cb']

All pairs of candidates, including inversions. I.e. there are both 'ab' and 'ba'.

Type

list of str

poisson_approval.constants.basic_constants.PERMUTATIONS = ['abc', 'acb', 'bac', 'bca', 'cab', 'cba']

Alias for RANKINGS.

Type

list of str

poisson_approval.constants.basic_constants.PLURALITY = 'Plurality'

Plurality.

Type

str

poisson_approval.constants.basic_constants.RANKINGS = ['abc', 'acb', 'bac', 'bca', 'cab', 'cba']

All possible rankings, such as 'abc'.

Type

list of str

poisson_approval.constants.basic_constants.SETS_OF_RANKINGS_UP_TO_RELABELLING = [('abc',), ('abc', 'acb'), ('abc', 'bac'), ('abc', 'bca'), ('abc', 'cba'), ('abc', 'bac', 'cab'), ('abc', 'acb', 'bac'), ('abc', 'acb', 'bca'), ('abc', 'bca', 'cab'), ('abc', 'acb', 'bac', 'bca'), ('abc', 'acb', 'bac', 'cab'), ('abc', 'acb', 'bac', 'cba'), ('abc', 'acb', 'bca', 'cba'), ('abc', 'acb', 'bac', 'bca', 'cab'), ('abc', 'acb', 'bac', 'bca', 'cab', 'cba')]

All possible sets of rankings, up to relabelling the candidates.

Type

list of tuple of str

poisson_approval.constants.basic_constants.TWELVE_TYPES = ['a_bc', 'ab_c', 'a_cb', 'ac_b', 'b_ac', 'ba_c', 'b_ca', 'bc_a', 'c_ab', 'ca_b', 'c_ba', 'cb_a']

All possible twelve-types, such as 'a_bc' or 'ab_c'. Cf. ProfileTwelve.

Type

list of str

poisson_approval.constants.basic_constants.VOTING_RULES = ['Approval', 'Plurality', 'Anti-plurality']

The three voting rules of the package, i.e. Approval, Plurality and Anti-Plurality.

Type

list of str

poisson_approval.constants.basic_constants.WEAK_ORDERS_HATE_WITHOUT_INVERSIONS = ['a~b>c', 'a~c>b', 'b~c>a']

All possible weak orders of type hate, without inversion. I.e. there is 'a~b>c' but not the equivalent 'b~a>c'.

Type

list of str

poisson_approval.constants.basic_constants.WEAK_ORDERS_LOVE_WITHOUT_INVERSIONS = ['a>b~c', 'b>a~c', 'c>a~b']

All possible weak orders of type love, without inversion. I.e. there is 'a>b~c' but not the equivalent 'a>c~b'.

Type

list of str

poisson_approval.constants.basic_constants.WEAK_ORDERS_WITHOUT_INVERSIONS = ['a>b~c', 'b>a~c', 'c>a~b', 'a~b>c', 'a~c>b', 'b~c>a']

All possible weak orders, without inversion. I.e. there is 'a>b~c' but not the equivalent 'a>c~b'.

Type

list of str