/// <summary> /// Initializes a new instance of the NormalDistribution class, using the specified /// <see cref="Generator"/> as underlying random number generator. /// </summary> /// <param name="generator">A <see cref="Generator"/> object.</param> /// <exception cref="ArgumentNullException"> /// <paramref name="generator"/> is NULL (<see langword="Nothing"/> in Visual Basic). /// </exception> public NormalDistribution(Generator generator) : base(generator) { this.mu = 1.0; this.sigma = 1.0; this.UpdateHelpers(); }
/// <summary> /// Initializes a new instance of the WeibullDistribution class, using the specified /// <see cref="Generator"/> as underlying random number generator. /// </summary> /// <param name="generator">A <see cref="Generator"/> object.</param> /// <exception cref="ArgumentNullException"> /// <paramref name="generator"/> is NULL (<see langword="Nothing"/> in Visual Basic). /// </exception> public WeibullDistribution(Generator generator) : base(generator) { this.alpha = 1.0; this.lambda = 1.0; this.UpdateHelpers(); }
/// <summary> /// Initializes a new instance of the ContinuousUniformDistribution class, using the specified /// <see cref="Generator"/> as underlying random number generator. /// </summary> /// <param name="generator">A <see cref="Generator"/> object.</param> /// <exception cref="ArgumentNullException"> /// <paramref name="generator"/> is NULL (<see langword="Nothing"/> in Visual Basic). /// </exception> public ContinuousUniformDistribution(Generator generator) : base(generator) { this.alpha = 0.0; this.beta = 1.0; this.UpdateHelpers(); }
/// <summary> /// Initializes a new instance of the GammaDistribution class, using the specified /// Generator as underlying random number generator. /// </summary> /// <param name="generator">A <see cref="Generator"/> object.</param> /// <exception cref="ArgumentNullException"> /// <paramref name="generator"/> is NULL (<see langword="Nothing"/> in Visual Basic). /// </exception> public GammaDistribution(Generator generator) : base(generator) { this.alpha = 1.0; this.theta = 1.0; this.UpdateHelpers(); }
/// <summary> /// Initializes a new instance of the <see cref="DiscreteUniformDistribution"/> class, using the specified /// <see cref="Generator"/> as underlying random number generator. /// </summary> /// <param name="generator">A <see cref="Generator"/> object.</param> /// <exception cref="ArgumentNullException"> /// <paramref name="generator"/> is NULL (<see langword="Nothing"/> in Visual Basic). /// </exception> public DiscreteUniformDistribution(Generator generator) : base(generator) { this.alpha = 0; this.beta = 1; this.UpdateHelpers(); }
/// <summary> /// Initializes a new instance of the RayleighDistribution class, using the specified /// <see cref="Generator"/> as underlying random number generator. /// </summary> /// <param name="generator">A <see cref="Generator"/> object.</param> /// <exception cref="ArgumentNullException"> /// <paramref name="generator"/> is NULL (<see langword="Nothing"/> in Visual Basic). /// </exception> public RayleighDistribution(Generator generator) : base(generator) { this.sigma = 1.0; this.normalDistribution1 = new NormalDistribution(generator); this.normalDistribution1.Mu = 0.0; this.normalDistribution2 = new NormalDistribution(generator); this.normalDistribution2.Mu = 0.0; this.UpdateHelpers(); }
/// <summary> /// Initializes a new instance of the <see cref="BinomialDistribution"/> class, using the specified /// <see cref="Generator"/> as underlying random number generator. /// </summary> /// <param name="generator">A <see cref="Generator"/> object.</param> /// <exception cref="ArgumentNullException"> /// <paramref name="generator"/> is NULL (<see langword="Nothing"/> in Visual Basic). /// </exception> public BinomialDistribution(Generator generator) : base(generator) { this.alpha = 0.5; this.beta = 1; }
/// <summary> /// Initializes a new instance of the PoissonDistribution class, using the specified /// Generator as underlying random number generator. /// </summary> /// <param name="generator">A Generator object.</param> /// <exception cref="ArgumentNullException"> /// <paramref name="generator"/> is NULL (<see langword="Nothing"/> in Visual Basic). /// </exception> public PoissonDistribution(Generator generator) : base(generator) { this.lambda = 1.0; this.UpdateHelpers(); }
/// <summary> /// Initializes a new instance of the LaplaceDistribution class, using the specified /// Generator as underlying random number generator. /// </summary> /// <param name="generator">A <see cref="Generator"/> object.</param> /// <exception cref="ArgumentNullException"> /// Generator is NULL (Nothing in Visual Basic). /// </exception> public LaplaceDistribution(Generator generator) : base(generator) { this.alpha = 1.0; this.mu = 0.0; }
/// <summary> /// Initializes a new instance of the ExponentialDistribution class, using the specified /// <see cref="Generator"/> as underlying random number generator. /// </summary> /// <param name="generator">A <see cref="Generator"/> object.</param> /// <exception cref="ArgumentNullException"> /// <paramref name="generator"/> is NULL (<see langword="Nothing"/> in Visual Basic). /// </exception> public ExponentialDistribution(Generator generator) : base(generator) { this.lambda = 1.0; this.UpdateHelpers(); }
/// <summary> /// Initializes a new instance of the Distribution class, using the specified /// <see cref="Generator"/> as underlying random number generator. /// </summary> /// <param name="generator">A Generator object.</param> /// <exception cref="ArgumentNullException"> /// Generator is NULL (Nothing in Visual Basic). /// </exception> protected Distribution(Generator generator) { this.generator = generator; }