Ejemplo n.º 1
0
        public ExponentialDistributor(int _a, int _m, double _R0)
        {
            LehmerProducer lp = new LehmerProducer(_a, _m, _R0);

            lst = lp.ProvideSequence();
            tc  = new TempCofficients(DistrMode.Exponential);
            tc.ShowDialog();
            lambda = tc.Value1;
        }
Ejemplo n.º 2
0
        public TriangularDistributor(int _a, int _m, double _R0)
        {
            LehmerProducer lp = new LehmerProducer(_a, _m, _R0);

            lst = lp.ProvideSequence();
            tc  = new TempCofficients(DistrMode.Uniform);
            tc.ShowDialog();
            a = tc.Value1;
            b = tc.Value2;
        }
Ejemplo n.º 3
0
        public GaussDistributor(int _a, int _m, double _R0)
        {
            LehmerProducer lp = new LehmerProducer(_a, _m, _R0);

            lst = lp.ProvideSequence();
            TempCofficients tc = new TempCofficients(DistrMode.Gauss);

            tc.ShowDialog();
            expc = tc.Value1;
            mdev = tc.Value2;
        }
Ejemplo n.º 4
0
        public SimpsonDistributor(int _a, int _m, double _R0)
        {
            LehmerProducer lp = new LehmerProducer(_a, _m, _R0);

            lst = lp.ProvideSequence();
            tc  = new TempCofficients(DistrMode.Uniform);
            tc.ShowDialog();
            a    = tc.Value1;
            b    = tc.Value2;
            lst2 = new List <double>();
            foreach (double tmp in lst)
            {
                lst2.Add(a / 2 + (b / 2 - a / 2) * tmp);
            }
        }