예제 #1
0
        public static void Main(string[] args)
        {
            double p     = 0.5;
            int    n     = 10;
            var    coefs = new BinomialCoefficients();

            var dist = new Distribution(coefs, p, n);

            foreach (var el in dist)
            {
                Console.Write(el + " ");
            }
        }
예제 #2
0
 public Distribution(BinomialCoefficients _coef, double p, int n)
 {
     this._coefficients = _coef;
     this._p            = p;
     this._n            = n;
 }