NAME

Vote::Count::Helper::Table

VERSION 2.04

Description

Table Formatting Helpers for use within Vote::Count.

SYNOPSIS

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 );

ChargeTable

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.

WeightedTable

Formats the current Vote Totals by Approval and Top Count when weighted voting is in use, for STV/Vote Charge methods.

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.