perl-Baseball-Sabermetrics - A Baseball Statistics Module

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package name perl-Baseball-Sabermetrics
Package version 0.03
Package release alt1
Package architecture noarch
Package type rpm
Installed size 39.69 KB
Download size 39.69 KB
Official Mirror
Baseball::Sabermetrics provides an easy interface for calculating baseball statistics, given a data importer.  In this package, I've written for (*Chinese Professional Baseball League*,
use Baseball::Sabermetrics;
use Baseball::Sabermetrics::CPBL;
my $league = Baseball::Sabermetrics->new(league => 'CPBL');
rc => 'ab * obp',
babip => '(h_allowed - hr_allowed) / (p_pa - h_allowed - p_so - p_bb - hr_allowed',
formula1 => 'hr / $_->team->hr';
formula2 => 'hr / $_->league->hr';
complex => sub {
print "You can write a sub directly\n";
$_->slg - $_->ba;
$_->print qw/ team name ba obp slg isop / for $league->top('teams', 5, 'obp');
$_->print qw/ team name ba obp slg isop / for $league->top('players', 10, 'obp');
$league->players('Chien-Ming Wang')->print qw/ win lose ip so bb whip go_ao /;
$league->teams('Yankees')->players('Chien-Ming Wang')->print qw/ win lose ip so bb whip go_ao /;
$league->{Yankees}->print qw/ win lose ip so bb whip go_ao /;
$league->{Yankees}->report_pitchers qw/ name ip p_so p_bb whip go_ab /;
$league->{Yankees}->report_batters  qw/ name ba obp slg isop /;
$league->report_teams qw/ name win lose era obp /;
print join ' ', $league->formula_list;


Package Version Architecture Repository
perl-Baseball-Sabermetrics - - -


Name Value
/usr/share/perl5 -
perl(Convert/Binary/ -
perl(Data/ -
perl( -
perl(HTML/ -
perl(LWP/ -
perl( -
perl( -
rpmlib(PayloadIsLzma) -


Name Value
perl(Baseball/ = 0.030
perl(Baseball/Sabermetrics/League/ -
perl(Baseball/Sabermetrics/League/ -
perl(Baseball/Sabermetrics/ -
perl(Baseball/Sabermetrics/ -
perl(Baseball/Sabermetrics/ -
perl-Baseball-Sabermetrics = 0.03-alt1


Type URL
Binary Package perl-Baseball-Sabermetrics-0.03-alt1.noarch.rpm
Source Package perl-Baseball-Sabermetrics-0.03-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    rpm [Sisyphus] noarch autoimports
    rpm [Sisyphus] noarch autoimports
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-Baseball-Sabermetrics rpm package:
    # sudo apt-get install perl-Baseball-Sabermetrics



See Also

Package Description
perl-Baseball-Simulation-0.1.1-alt1.noarch.rpm perl module Baseball-Simulation
perl-Bash-Completion-0.008-alt1.noarch.rpm Extensible system to provide bash completion
perl-Bash-Completion-Plugin-Test-0.01-alt1.noarch.rpm Module for testing Bash::Completion plugins
perl-Bash-Completion-Plugins-App-Cmd-0.02-alt1.noarch.rpm A Bash::Completion plugin for writing App::Cmd plugins
perl-Bash-Completion-Plugins-VimTag-2.00-alt1.noarch.rpm Bash completion plugin for vim tags
perl-Bash-Completion-Plugins-cpanm-0.0.2-alt1.noarch.rpm Bash completion for cpanm and cpanf
perl-Bash-Completion-Plugins-dzil-0.02-alt1.noarch.rpm Bash::Completion support for Dist::Zilla
perl-Bash-Completion-Plugins-perlbrew-0.10-alt1.noarch.rpm Bash completion for perlbrew
perl-Bash-Completion-Plugins-pinto-0.004-alt1.noarch.rpm Bash completion for pinto
perl-Bash-Completion-scripts-0.008-alt1.noarch.rpm Bash-Completion scripts
perl-Bash-History-Read-0.04-alt1.noarch.rpm Utility to read bash history file entries
perl-Basket-Calc-0.5-alt1.noarch.rpm Basket/Cart calculation library with support for currency conversion, discounts and tax
perl-Basset-1.04-alt1.noarch.rpm perl module Basset
perl-Bat-Interpreter-0.014-alt1.noarch.rpm Pure perl interpreter for a small subset of bat/cmd files
perl-Batch-Interpreter-0.01-alt1.noarch.rpm interpreter for CMD.EXE batch files