The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Vote::Count::Boorda

VERSION

version 0.001

Boorda Wieght

Boorda's original method assigned each position the inverse if its position, ie in a 9 choice ballot position 1 was worth 9, while position 9 was worth 1, and position 8 was worth 2.

When Creating a VoteCount object the Boorda weight may be set by passing a coderef. The coderef takes two arguments. The first argument is the position of the choice in question. The second argument is the depth of the ballot. The optional bordadepth attribute will set an arbitrary depth. 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.

The default Weight when none are provided is Boorda's original weight. If the boordadepth attribute is set it will be followed.

Private Method _boordashrinkballot( $BallotSet, $active )

Takes a BallotSet and active list and returns a BallotSet reduced to only the active choices. When choices are removed later choices are promoted.

AUTHOR

John Karr <brainbuz@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2019 by John Karr.

This is free software, licensed under:

The GNU General Public License, Version 3, June 2007