single_series_solver: Given current seriess and a series number and home and away...

View source: R/league.R

single_series_solverR Documentation

Given current seriess and a series number and home and away teams, either return true series winner, random series winner (with home/away wins considered) or random series winner

Description

Given current seriess and a series number and home and away teams, either return true series winner, random series winner (with home/away wins considered) or random series winner

Usage

single_series_solver(
  series_number,
  currentSeries,
  homeTeam,
  awayTeam,
  homeAwayOdds = NULL,
  params = NULL
)

Arguments

series_number

Series number from 1:15

currentSeries

the full list of series returned from getAPISeries

homeTeam

Home Team extracted from summary_results

awayTeam

away Team extracted from summary_results

homeAwayOdds

if calculated, the odds of a home or away team win

params

The named list containing m, rho, beta, eta, and k. See updateDC for information on the params list

Value

a series winner (team name)


pbulsink/HockeyModel documentation built on Dec. 16, 2024, 8:03 a.m.