Пример #1
0
        static void Main(string[] args)
        {
            var pSet           = new NumberOfErrorsProbabilityCalculator(1000, 0.01);
            var pScale         = new NumberOfErrorsProbabilityScale(pSet, 0.001);
            var experimentator = new Experimentator(pScale);

            foreach (int n in experimentator.MakeExperiments_ReturnNumberOfErrors(50000))
            {
                Console.WriteLine(n);
            }



            /*
             * foreach (var p in pScale.Probabilities)
             * {
             *  Console.WriteLine(p);
             * }
             */
        }
Пример #2
0
 public Experimentator(NumberOfErrorsProbabilityScale scale)
 {
     _scale      = scale;
     _randomizer = new Random();
 }