12 Jul 2021 00:48:15 UTC
- Distribution: Vote-Count
- Module version: 2.01
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (3)
- Testers (7 / 0 / 0)
- KwaliteeBus factor: 1
- 95.97% Coverage
- License: gpl_3
- Perl: v5.24.0
- Activity24 month
- Download (289.88KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
- Reverse dependencies
- CPAN Testers List
- Dependency graph
Methods for Redacting Ballots.
Redacting Ballots is useful for what-if analysis and identifying Later Harm effects. Compound Methods seeking to reduce Later Harm effects can also be developed using this technique.
use Vote::Count::Redact qw/RedactPair RedactBullet RedactSingle/;
Takes a list (array) of choices to be converted to bullet votes. Returns a modified BallotSet where all votes that had a first choice vote for a member of the list are votes for only that choice.
my $newBallotSet = RedactBullet( $Election->BallotSet(), 'A', 'B', 'F');
Return a new BallotSet truncating the ballots after the given choice.
my $newBallotSet = RedactSingle( $VoteCountObject->BallotSet(), $choice);
For a Ballot Set and two choices, on each ballot where both appear it removes the later one and all subsequent choices, returning a completely independent new BallotSet. If the later choices were left intact, they would become votes against the redacted choices in those pairings.
my $newBallotSet = RedactPair( $VoteCountObject->BallotSet(), 'A', 'B');
John Karr (BRAINBUZ) firstname.lastname@example.org
Copyright 2019-2021 by John Karr (BRAINBUZ) email@example.com.
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.
This software is provided as is, per the terms of the GNU Public License. Professional support and customisation services are available from the author.