Exemplo n.º 1
0
        private void Verify(double[] person1, double[] person2, bool expectedResult)
        {
            Console.WriteLine("Shoule be {0}:", expectedResult ? "Same" : "Different");
            var resutl = _aiService.Distance(person1, person2, 190);

            Console.WriteLine(string.Format("\t\t - Distance 1 result: [{0}]", resutl));

            resutl = _aiService.Distance2(person1, person2, 190);
            Console.WriteLine(string.Format("\t\t - Distance 2 result: [{0}]", resutl));

            resutl = _aiService.Distance3(person1, person2, 190);
            Console.WriteLine(string.Format("\t\t - Distance 3 result: [{0}]", resutl));

            //foreach (var item in person2)
            //{
            //    Console.WriteLine(Math.Truncate(item));
            //}
        }