perl-Baseball-Sabermetrics-0.03-alt1.noarch.rpm


Advertisement

Description

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 ftp.altlinux.org
Baseball::Sabermetrics provides an easy interface for calculating baseball statistics, given a data importer.  In this package, I've written CPBL.pm for (*Chinese Professional Baseball League*, http://www.cpbl.com.tw).
use Baseball::Sabermetrics;
use Baseball::Sabermetrics::CPBL;
my $league = Baseball::Sabermetrics->new(league => 'CPBL');
$league->define(
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;

Alternatives

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

Requires

Name Value
/usr/share/perl5 -
perl(Convert/Binary/C.pm) -
perl(Data/Serializer.pm) -
perl(Encode.pm) -
perl(HTML/TableExtract.pm) -
perl(LWP/UserAgent.pm) -
perl(base.pm) -
perl(constant.pm) -
rpmlib(PayloadIsLzma) -

Provides

Name Value
perl(Baseball/Sabermetrics.pm) = 0.030
perl(Baseball/Sabermetrics/League/CPB2.pm) -
perl(Baseball/Sabermetrics/League/CPBL.pm) -
perl(Baseball/Sabermetrics/Player.pm) -
perl(Baseball/Sabermetrics/Team.pm) -
perl(Baseball/Sabermetrics/abstract.pm) -
perl-Baseball-Sabermetrics = 0.03-alt1

Download

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] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/Sisyphus noarch autoimports
    rpm [Sisyphus] http://ftp.altlinux.org/pub/distributions/ALTLinux/autoimports/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

Files

Path
/usr/share/doc/perl-Baseball-Sabermetrics-0.03/Changes
/usr/share/doc/perl-Baseball-Sabermetrics-0.03/README
/usr/share/doc/perl-Baseball-Sabermetrics-0.03/examples/ws.pl
/usr/share/perl5/Baseball/Sabermetrics.pm
/usr/share/perl5/Baseball/Sabermetrics/Player.pm
/usr/share/perl5/Baseball/Sabermetrics/Team.pm
/usr/share/perl5/Baseball/Sabermetrics/abstract.pm
/usr/share/perl5/Baseball/Sabermetrics/League/CPB2.pm
/usr/share/perl5/Baseball/Sabermetrics/League/CPBL.pm

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
Advertisement
Advertisement