예제 #1
0
        public void RandomMatrixTest()
        {
            var seed = new MCJIMatrix(2, 2);

            seed.setAt(0, 0, 1);
            seed.setAt(0, 1, 3);
            seed.setAt(1, 0, 5);
            seed.setAt(1, 1, 7);

            var nlib = new NLapackLib();

            for (int i = 0; i < 10; i++)
            {
                var result = nlib.RandomMatrix(RandomDistributionType.Uniform_0_1, seed, 2, 2);
                Console.WriteLine(result);
            }
        }
예제 #2
0
        public void RandomMatrixTest()
        {
            var seed = new MCJIMatrix(2, 2);
            seed.setAt(0, 0, 1);
            seed.setAt(0, 1, 3);
            seed.setAt(1, 0, 5);
            seed.setAt(1, 1, 7);

            var nlib = new NLapackLib();

            for (int i = 0; i < 10; i++)
            {
                var result = nlib.RandomMatrix(RandomDistributionType.Uniform_0_1, seed, 2, 2);
                Console.WriteLine(result);
            }
        }
예제 #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="distrubutionType"></param>
 /// <param name="seed"></param>
 /// <param name="m"></param>
 /// <param name="n"></param>
 public NRealMatrix RandomMatrix(RandomDistributionType distrubutionType, MCJIMatrix seed, int m, int n)
 {
     return(new NRealMatrix(_lib.randomMatrix(Convert.ToUInt16(distrubutionType), seed, m, n)));
 }
예제 #4
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="distrubutionType"></param>
 /// <param name="seed"></param>
 /// <param name="m"></param>
 /// <param name="n"></param>
 public NRealMatrix RandomMatrix(RandomDistributionType distrubutionType, MCJIMatrix seed, int m,int n)
 {
     return new NRealMatrix(_lib.randomMatrix(Convert.ToUInt16(distrubutionType), seed, m, n));
 }