コード例 #1
0
        public static double[] OffensivePpgRatio(this BasketballTeam t)
        {
            double[] d   = t.PointsPerGameByGame();
            double   ppg = t.PointsPerGame();

            for (int k = 0; k < t.Matchups.Count; k++)
            {
                BasketballTeam opp = t.Teams[t.Matchups[k].Opponent];
                if (opp != null)
                {
                    d[k] /= (opp.DefensivePpgRatioAverage() * ppg);
                }
            }
            return(d);
        }