Ejemplo n.º 1
0
        internal void InitializeParams()            //TODO CHECK trebaju li svi biti između 0 i 1?
        {
            Random    rand = new Random();
            RandomNum ran  = new RandomNum();

            for (int i = 0; i < _m; i++)
            {
                _a1[i] = ran.GetDouble(1, -1);
                _b1[i] = ran.GetDouble(1, -1);
                _a2[i] = ran.GetDouble(1, -1);
                _b2[i] = ran.GetDouble(1, -1);
                _a3[i] = ran.GetDouble(1, -1);
                _b3[i] = ran.GetDouble(1, -1);
                _a4[i] = ran.GetDouble(1, -1);
                _b4[i] = ran.GetDouble(1, -1);
                _a5[i] = ran.GetDouble(1, -1);
                _b5[i] = ran.GetDouble(1, -1);
                _w0[i] = ran.GetDouble(1, -1);
                _w1[i] = ran.GetDouble(1, -1);
                _w2[i] = ran.GetDouble(1, -1);
                _w3[i] = ran.GetDouble(1, -1);
                _w4[i] = ran.GetDouble(1, -1);
                _w5[i] = ran.GetDouble(1, -1);
            }
        }
Ejemplo n.º 2
0
        internal void InitializeParams()            //TODO CHECK trebaju li svi biti između 0 i 1?
        {
            Random    rand = new Random();
            RandomNum ran  = new RandomNum();

            for (int i = 0; i < _m; i++)
            {
                _a1[i] = ran.GetDouble(1, -1);
                _b1[i] = ran.GetDouble(1, -1);
                _a2[i] = ran.GetDouble(1, -1);
                _b2[i] = ran.GetDouble(1, -1);
                _p[i]  = ran.GetDouble(1, -1);
                _q[i]  = ran.GetDouble(1, -1);
                _r[i]  = ran.GetDouble(1, -1);
            }
        }