示例#1
0
        /// <summary>Calculate statistics metrics based on loaded Iris flowers.</summary>
        private void CalculateStats()
        {
            averageIrises = Calculator.CalculateAverageIrises();
            foreach (Iris iris in averageIrises)
            {
                for (int i = 0; i < iris.Features.Dimensions; i++)
                {
                    iris.Features[i] = Math.Round(iris.Features[i], 2);
                }
            }

            euclideanDistances = Calculator.CalculateEuclideanDistances();
            var keys = new List <List <string> >(euclideanDistances.Keys);

            foreach (List <string> key in keys)
            {
                euclideanDistances[key] = Math.Round(euclideanDistances[key], 2);
            }
        }