public UnitSphereDistribution(RandomGenerator ran) : base(ran) { scale = 2.0 / generator.Maximum; }
public PoissonDistribution (double mean, RandomGenerator ran) : base(ran) { Initialize(mean); }
public BinomialDistribution (double prob, int num, RandomGenerator ran) : base(ran) { Initialize(prob,num); }
public ChiSquareDistribution (double f, RandomGenerator ran) : base(0.5*f,1.0,ran) { F = f; }
FDistribution (double numf, double denomf, RandomGenerator ran) : base(ran) { // check parameter range if (numf < 0.0 || denomf < 0.0) throw new ArgumentException(string.Format("Numerator ({0}) and denominator ({1}) degrees of freedom must be positive", numf, denomf)); // store parameters NF = numf; DF = denomf; // initialize numerator and denominator chi-square distributions NumChi2 = new ChiSquareDistribution(NF,ran); DenomChi2 = new ChiSquareDistribution(DF,ran); }
public GammaDistribution (double order, double loc, RandomGenerator ran) // original: NormalDistribution(0.0,1.0,ran), // std. normal { normalDistribution = new NormalDistribution(0.0,1.0,ran); exponentialDistribution = new ExponentialDistribution(1.0,ran); // std. exponential Initialize(order,loc); }
public BetaDistribution (double pa, double pb, RandomGenerator ran) : base(ran) { Initialize(pa,pb); }
public ExponentialDistribution (double mean, RandomGenerator ran) : base(ran) { m = mean; scale = 1.0 / generator.Maximum; }
public ErlangDistribution (int order, double loc, RandomGenerator ran): base(ran) { SetOrder(order,loc); }
public LogNormalDistribution (double mean, double stdev, RandomGenerator ran) : base(mean,stdev,ran) { Initialize(mean,stdev); }
public NormalDistribution (double mean, double stdev, RandomGenerator ran) : base(ran) { cached = false; mu = mean; sigma = stdev; scale = 2.0 / generator.Maximum; }
public U01_Distribution(RandomGenerator ran) : base(ran) { scale = 1.0 / generator.Maximum; }
public UniformDistribution (double lo, double hi, RandomGenerator ran) : base(ran) { if (hi > lo) { low = lo; high = hi; } else { low = hi; high = lo; } scale = (high-low) / generator.Maximum; }
/// <summary>Initialize the distribution by providing the random generator used /// to produce the random values.</summary> /// <param name="ran">The random generator used to produce the random values.</param> public ProbabilityDistribution(RandomGenerator ran) { generator = ran; }