예제 #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();
            }
        }
 public GeometricDistribution(double p)
 {
     this.p      = p;
     this.random = new RandomBSV(146051657, 1928884637);
 }
 public BinomialDistribution(int m, double p)
 {
     this.m      = m;
     this.p      = p;
     this.random = new RandomBSV(24149775, 19581355);
 }
 public BernoulliDistribution(double p)
 {
     this.p      = p;
     this.random = new RandomBSV(24149775, 19581355);
 }