Simulate a service point given a number of parameters for the server, that include probability of the server winning a point on their first serve, on their second serve, and the probability that their first serve will go in.
simPoint(p, p2 = NULL, firstServe = NULL)
param | details |
---|---|
p | probability of server winning point on their first serve |
p2 | probability of server winning point on their second serve |
firstServe | probability of first serve being in |
The value returned is numeric, 1 if the server wins and 0 if the returner wins.