This function calculates the match win prediction for matches in progress based on the current score and the in-match server performance
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | dynamic_in_match_win(
point_a,
point_b,
game_a,
game_b,
set_a,
set_b,
server.prob,
returner.prob,
server.serve.points.won,
server.serve.points,
returner.serve.points.won,
returner.serve.points,
format
)
|
point_a |
Numeric game points won by current server at start of point |
point_b |
Numeric game points won by current returner at start of point |
game_a |
Numeric games won by current server in the current set |
game_b |
Numeric games won by current returner in the current set |
set_a |
Numeric sets won by current server |
set_b |
Numeric sets won by current returner |
server.prob |
Numeric serve win prob of current server |
server.serve.points.won |
Numeric total service points won in match up to current point |
server.serve.points |
Numeric total service points played in match up to current point |
returner.serve.points.won |
Numeric total service points won in match up to current point |
returner.serve.points |
Numeric total service points played in match up to current point |
format |
Character and one of ('bestof3', 'laver', 'bestof5', 'doubles') |
return.prob |
Numeric serve win prob of current returner |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.