public LearningProbability(int myMaxPoints, int theirMaxPoints) { probabilityMap = new ProbabilityTracker[myMaxPoints + 1, theirMaxPoints + 1]; for (int i = 0; i <= myMaxPoints; ++i) { for (int j = 0; j <= theirMaxPoints; ++j) { probabilityMap[i, j] = new ProbabilityTracker(); } } }
public void Read(BinaryReader input) { int myMaxScore = input.ReadInt16(); int theirMaxScore = input.ReadInt16(); probabilityMap = new ProbabilityTracker[myMaxScore, theirMaxScore]; for (int myScore = 0; myScore < myMaxScore; ++myScore) { for (int theirScore = 0; theirScore < theirMaxScore; ++theirScore) { probabilityMap[myScore, theirScore] = new ProbabilityTracker(input.ReadSingle()); } } }