NAME

Vote::Count::Borda

VERSION 2.01

Synopsis

my $RCV = Vote::Count->new(
  BallotSet  => read_ballots('t/data/data1.txt'),
  bordadepth => 5
);
my $bordacount = $RCV->Borda();

Borda Count

Scores Choices based on their position on the Ballot. The first choice candidate gets a score equal to the number of choices, each lower choice receives 1 less.

The Borda Count is trying to Cardinally value Preferential choices, for this reason where the Borda Count is an appropriate method it is a better to use a Range Ballot instead of Preferential so that the voters may assign the Cardinal values.

Variations on the Borda Count

One major criticism of the count is that when there are many choices the difference between a first and second choice becomes negligible. A large number of alternative weightings have been used to address this.

Borda Depth (bordadepth parameter)

One of the simpler variations is to fix the depth, when the depth is set to a certain number the weighting is as if the ballot had that many choices, and choices ranked lower than the depth are scored 0. If there are eight choices and a depth of 3, a first choice is worth 3, a 3rd 1, and later choices are ignored

Borda Weight (bordaweight parameter)

Some of the popular alternate weighting systems include:

  • different scaling such as 1/x where x is the position of the choice (1 is worth 1, 3 is 1/3).

  • Another popular alternative is to score for one less than the number of choices -- in a five choice race first is worth 4 and last is worth 0.

When Creating a VoteCount object a custom Borda weight may be set by passing a coderef for bordaweight. The coderef takes two arguments. The first argument is the position of the choice in question. The second argument is optional for passing the depth of the ballot to the coderef. Some popular options such inversion (where choice $c becomes $c/1 then inverted to 1/$c) don't need to know the depth. In such cases the coderef should just ignore the second argument.

my $testweight = sub {
  my $x = int shift @_;
  return $x ? 1/$x : 0 ;
};

my $VC2 = Vote::Count->new(
  BallotSet   => read_ballots('t/data/data2.txt'),
  bordaweight => $testweight,
);

unrankdefault

Jean-Charles de Borda expected voters to rank all available choices. When they fail to do this the unranked choices need to be handled. The default in Vote::Count is to score unranked choices as 0. However, it is also common to score them as 1. Vote::Count permits using any Integer for this valuation.

my $VC2 = Vote::Count->new(
  BallotSet   => read_ballots('t/data/data2.txt'),
  unrankdefault => 1,
);

Method Borda

Returns a RankCount Object with the scores per the weighting rule, for Ranked Choice Ballots. Optional Parameter is a hashref defining an active set.

BUG TRACKER

https://github.com/brainbuz/Vote-Count/issues

AUTHOR

John Karr (BRAINBUZ) brainbuz@cpan.org

CONTRIBUTORS

Copyright 2019-2021 by John Karr (BRAINBUZ) brainbuz@cpan.org.

LICENSE

This module is released under the GNU Public License Version 3. See license file for details. For more information on this license visit http://fsf.org.

SUPPORT

This software is provided as is, per the terms of the GNU Public License. Professional support and customisation services are available from the author.