Scores#

borda_spread(election) int[source]#

Compute the difference between the highest and the lowest Borda score

highest_borda_score(election) dict[source]#

Computes the highest Borda score of a given election.

Parameters:

election (OrdinalElection)

Returns:

‘value’: highest Borda score

Return type:

dict

highest_cc_score(election, committee_size: int = 1)[source]#

Computes the highest CC score of a given election.

Parameters:

election (OrdinalElection)

Returns:

‘value’: highest CC score

Return type:

dict

highest_copeland_score(election) dict[source]#

Computes the highest Copeland score of a given election.

Parameters:

election (OrdinalElection)

Returns:

‘value’: highest Copeland score

Return type:

dict

highest_hb_score(election, committee_size: int = 1)[source]#

Computes the highest HB score of a given election.

Parameters:

election (OrdinalElection)

Returns:

‘value’: highest HB score

Return type:

dict

highest_pav_score(election, committee_size: int = 1)[source]#

Computes the highest PAV score of a given election.

Parameters:

election (OrdinalElection)

Returns:

‘value’: highest PAV score

Return type:

dict

highest_plurality_score(election) dict[source]#

Computes the highest Plurality score of a given election.

Parameters:

election (OrdinalElection)

Returns:

‘value’: highest Plurality score

Return type:

dict

lowest_dodgson_score(election)[source]#

Computes the lowest Dodgson score of a given election

Parameters:

election (OrdinalElection)

Returns:

‘value’: lowest Dodgson score

Return type:

dict