/// <summary>
 /// Initializes a new instance of the <see cref="Tester"/> class.
 /// </summary>
 /// <param name="testingCollection">The testing collection.</param>
 public Tester(TestingCollection testingCollection)
 {
     TestingCollection = testingCollection;
 }
        /// <summary>
        /// Loads the standard data from file.
        /// </summary>
        /// <returns>Collection with datas</returns>
        public static TestingCollection LoadStandardData()
        {
            const int HOW_MANY_NUMBERS_TO_TEST_FROM_FILE = 100;
            TestingCollection collection = new TestingCollection(HOW_MANY_NUMBERS_TO_TEST_FROM_FILE);

            GiveItemsFromFile itemReturner = new GiveItemsFromFile();
            byte[] expectedResultFromFile = itemReturner.GiveArrayOfExpectedResultsToTest();
            sbyte[,] trainDataFromFile = itemReturner.GiveArrayOfTestData();
            const int SIZE_OF_IMAGE = 28 * 28;

            int[] indexes = RandomIndexes.GiveArrayOfRandomDifferentIntegers(HOW_MANY_NUMBERS_TO_TEST_FROM_FILE, 10000);

            for (int numberCounter = 0; numberCounter < HOW_MANY_NUMBERS_TO_TEST_FROM_FILE; numberCounter++)
            {
                int index = indexes[numberCounter];
                int expectedResult = expectedResultFromFile[index];

                double[] testData = new double[SIZE_OF_IMAGE];
                for (int i = 0; i < SIZE_OF_IMAGE; i++)
                {
                    testData[i] = trainDataFromFile[index, i];
                }

                TestingSet testingSet = new TestingSet();
                testingSet.Input = testData;
                testingSet.Value = expectedResult;

                collection.Values.Add(testingSet);
            }

            return collection;
        }