Beispiel #1
0
 /// <summary>
 /// Initializes a new instance, using a <see cref="Random"/>
 /// as underlying random number generator.
 /// </summary>
 public NormalDistribution(double mu, double sigma)
 {
     SetDistributionParameters(mu, sigma);
     _standard = new StandardDistribution(RandomSource);
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance, using a <see cref="Random"/>
 /// as underlying random number generator.
 /// </summary>
 public NormalDistribution()
 {
     SetDistributionParameters(0.0, 1.0);
     _standard = new StandardDistribution(RandomSource);
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance, using the specified <see cref="RandomSource"/>
 /// as underlying random number generator.
 /// </summary>
 /// <param name="random">A <see cref="RandomSource"/> object.</param>
 /// <exception cref="ArgumentNullException">
 /// <paramref name="random"/> is NULL (<see langword="Nothing"/> in Visual Basic).
 /// </exception>
 public NormalDistribution(Random random)
     : base(random)
 {
     SetDistributionParameters(0.0, 1.0);
     _standard = new StandardDistribution(random);
 }
Beispiel #4
0
 /// <summary>
 /// Initializes a new instance, using a <see cref="Random"/>
 /// as underlying random number generator.
 /// </summary>
 public LognormalDistribution()
 {
     SetDistributionParameters(0.0, 1.0);
     _standard = new StandardDistribution();
 }