public void ProcessPattern(Pattern pattern) { ++SampleSize; if(null != CheckPattern && CheckPattern(pattern)) { ++Matches; } }
internal static Pattern Make(string line, int minNumberOfRacesToConsider) { string[] s = line.Split(','); int minPatternSize = 1 + 7 * minNumberOfRacesToConsider; Pattern hp = null; if (s.Length >= minPatternSize + 1) { hp = new Pattern(s, minNumberOfRacesToConsider); } if (null != hp && hp.CountOfDataPoints <= 0) hp = null; return hp; }
internal static Pattern Make(Horse horse, int numberOfInputNeurons) { int numberOfAvailableFigures; var p = new Pattern(horse, numberOfInputNeurons, out numberOfAvailableFigures); return numberOfAvailableFigures >= numberOfInputNeurons ? p : null; }