That sounds good, I'll write that up tonight and compare the numbers I get from either function, then I'll decide which one looks better. On 2/27/06, Brandon Ripley <Brandon.Ripley@xxxxxxxxxx> wrote: > > I kind of got what you were describing below, but I'm not completely sure. > Here is my take. I think the strength of schedule should take all your > opponents' average wins and subtract all your alliance partners' average > wins. It should range between -1 and 1. Negative one means your alliances > won all their matches and your opponents lost all their matches (perfect > easy schedule). Positive one means your alliances lost all their matches and > your opponents won all their matches (perfect difficult schedule). > > For this example, the team of interest is Red1 and WinPercent is that > team's average win percentage. > $matchSoS = (($blue1WinPercent + $blue2WinPercent + $blue3WinPercent) / 3) > - (($red2WinPercent + $red3WinPercent) / 2) > > This calculation would be duplicated for each match the robot of interest > was in and all the $matchSoS's would be averaged. > > I think this is pretty close to what you are describing below. > > Brandon > > > > ------------------------------ > *From:* Steven Buss [mailto:steven.buss@xxxxxxxxx] > *Sent:* Sunday, February 26, 2006 7:21 PM > *To:* stamp@xxxxxxxxxxxxx > *Subject:* [stamp] strength of schedule > > Strength of schedule is done, but I don't know if I'm happy with how it > works. Right now it finds the sum of the win percentage of every opponent > ($opponentAverageWins) and the sum of the win percentage of each team on the > alliance the requested team is on ($myAverageWins). It then divides each > $opponentAverageWins and $myAverageWins by the total number of robots played > (essentially = 3 * number of matches). It returns (($opponentAverageWins / > $robotsPlayed) + (1 - ($myAllianceAverageWins / 3))) / 2, which is the > average opponent win percentage plus 1 - teammate win percentage. Does that > sound ok? I hope my description was good... > > -- > Steven Buss > steven.buss@xxxxxxxxx > PHP/MySQL programmer > -- Steven Buss steven.buss@xxxxxxxxx PHP/MySQL programmer