/* структура функции тестирования не изменилась, был использован объект класса testInfo * с целью сокращения кода (класс встроенный и описан в конце файла) * */ private void OrderedTestResultsForParameters(double[,] testData, int rowsNumber, int columnsNumber) { resultsOfTesting = new double[currentSamplesNumber][]; paramsOfTestingResultsIm = new double[currentSamplesNumber][]; paramsOfTestingResultsFil = new double[currentSamplesNumber][]; paramsOfTestingResultsFilOrderNum = new int[currentSamplesNumber][]; paramsOfTestingResultsFilDifference = new double[currentSamplesNumber][]; min_mean_number_resultsOfTesting = new double[currentSamplesNumber, 3]; for (int k = 0; k < currentSamplesNumber; k++) { TestInfo testInfo = new TestInfo(3250); double[,] currentSampleContent = ((ChromosomeTypeOne)samples[k].GetIndividualContent()[0]).ChromosomeContent; int[] currentSampleFilter = ((ChromosomeTypeTwo)samples[k].GetIndividualContent()[1]).ChromosomeContent; testInfo.SelectFittedImages(testData, rowsNumber, columnsNumber, currentSampleContent, currentSampleFilter); testInfo.GetNumberOfFiltersByEffectiveness(testData, rowsNumber, columnsNumber, currentSampleContent, currentSampleFilter); resultsOfTesting[k] = new double[testInfo.SetQuantity]; paramsOfTestingResultsIm[k] = new double[testInfo.SetQuantity]; paramsOfTestingResultsFil[k] = new double[testInfo.SetQuantity]; paramsOfTestingResultsFilOrderNum[k] = new int[testInfo.SetQuantity]; for (int i = 0; i < testInfo.SetQuantity; i++) { resultsOfTesting[k][i] = testInfo.Temp[i]; paramsOfTestingResultsIm[k][i] = testInfo.TempParImageNum[i]; paramsOfTestingResultsFil[k][i] = testInfo.TempParFilterNum[i]; } min_mean_number_resultsOfTesting[k, 0] = testInfo.TempMin; min_mean_number_resultsOfTesting[k, 1] = testInfo.TempMean / (double)testInfo.SetQuantity; min_mean_number_resultsOfTesting[k, 2] = testInfo.SetQuantity; //добавить paramsOfTestingResultsFilOrderNum[k] = testInfo.NumberOfFilterByEffectiveness; paramsOfTestingResultsFilDifference[k] = testInfo.DifferenceOfEffectiveness; } }