Esempio n. 1
0
        public void ProcessPattern(Pattern pattern)
        {
            ++SampleSize;

             if(null != CheckPattern && CheckPattern(pattern))
             {
                 ++Matches;
             }
        }
Esempio n. 2
0
        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;
        }
Esempio n. 3
0
 internal static Pattern Make(Horse horse, int numberOfInputNeurons)
 {
     int numberOfAvailableFigures;
     var p = new Pattern(horse, numberOfInputNeurons, out numberOfAvailableFigures);
     return numberOfAvailableFigures >= numberOfInputNeurons ? p : null;
 }