Ejemplo n.º 1
0
        private void FillNormalArray(List <long[]> list, long N, long end = -1)
        {
            NormalRandom random = new NormalRandom();

            if (end == -1)
            {
                end = N - 1;
            }
            long next = 0;

            for (int i = 0; i < 5; i++)
            {
                long[] ls = new long[N];

                for (int j = 0; j < N; j++)
                {
                    next  = (long)(random.NextGaussian());
                    ls[j] = next;
                }

                list.Add(ls);
            }
        }
Ejemplo n.º 2
0
        private void FillNormal(List <List <long> > list, long N, long end = -1)
        {
            List <long>  ls     = new List <long>();
            NormalRandom random = new NormalRandom();

            if (end == -1)
            {
                end = N - 1;
            }
            long next = 0;

            for (int i = 0; i < 5; i++)
            {
                ls.Clear();

                for (int j = 0; j < N; j++)
                {
                    next = (long)(random.NextGaussian());
                    ls.Add(next);
                }

                list.Add(ls);
            }
        }