Esempio n. 1
0
        /// <summary> Исследование классов эллиптических кривых на основе их границы B относительно размености поля </summary>
        private static void ResearchFieldOrderBasedClasses()
        {
            Console.WriteLine("ResearchFieldOrderBasedClasses:");
            var fieldOrderBasedClassificator = ClassificatorFactory.Create(new Func <CurveBaseInfo, bool>[]
            {
                info => info.EdgeB <= Math.Pow(info.FieldOrder, 0.25),
                info => info.EdgeB > Math.Pow(info.FieldOrder, 0.25) && info.EdgeB <= Math.Pow(info.FieldOrder, 0.33),
                info => info.EdgeB > Math.Pow(info.FieldOrder, 0.33) && info.EdgeB <= Math.Pow(info.FieldOrder, 0.5),
                info => info.EdgeB > Math.Pow(info.FieldOrder, 0.5)
            });

            DoResearch(fieldOrderBasedClassificator);
        }
Esempio n. 2
0
        /// <summary> Исследование классов эллиптических кривых на основе их границы B относительно констант </summary>
        private static void ResearchConstantsBasedClasses()
        {
            Console.WriteLine("ResearchConstantsBasedClasses:");
            var constantsBasedClassificator = ClassificatorFactory.Create(new Func <CurveBaseInfo, bool>[]
            {
                info => info.EdgeB <= 100,
                info => info.EdgeB > 100 && info.EdgeB <= 1000,
                info => info.EdgeB > 1000 && info.EdgeB <= 10000,
                info => info.EdgeB > 10000
            });

            DoResearch(constantsBasedClassificator);
        }