Table Formatting Helpers for use within Vote::Count
use Vote::Count::Helper::Table 'ChargeTable'; # $chargesPerChoice and $chargedPerChoice are from Vote::Count::Charge::Cascade say ChargeTable( $chargesPerChoice, $chargedPerChoice ); use Vote::Count::Helper::Table 'WeightedTable'; # When weighted voting is used will generate a table # with the Top Count and Approval totals say WeightedTable( $STV_Election );
Arguments: $chargesPerChoice, $chargedPerChoice
chargesPerChoice is a HashRef with the choices as keys, and the values the charge assessed each ballot supporting the choice.
chargedPerChoice is a HashRef with the choices as keys and the values a HashRef with the keys value, count, surplus, where value is the total vote value charged for the choice, count is the number of ballots that contributed, and surplus the value above quota charged.
Formats the current Vote Totals by Approval and Top Count when weighted voting is in use, for STV/Vote Charge methods.
John Karr (BRAINBUZ) email@example.com
Copyright 2019-2021 by John Karr (BRAINBUZ) firstname.lastname@example.org.
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.