コード例 #1
0
        public MacLarenRandom(RandomBSV rand1, RandomBSV rand2)
        {
            table = new double[K];

            this.rand1 = rand1;
            this.rand2 = rand2;

            for (int i = 0; i < K; i++)
            {
                table[i] = rand1.Next();
            }
        }
コード例 #2
0
 public GeometricDistribution(double p)
 {
     this.p      = p;
     this.random = new RandomBSV(146051657, 1928884637);
 }
コード例 #3
0
 public BinomialDistribution(int m, double p)
 {
     this.m      = m;
     this.p      = p;
     this.random = new RandomBSV(24149775, 19581355);
 }
コード例 #4
0
 public BernoulliDistribution(double p)
 {
     this.p      = p;
     this.random = new RandomBSV(24149775, 19581355);
 }