예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FisherSnedecorDistribution"/> 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 FisherSnedecorDistribution(Generator generator)
     : base(generator)
 {
     this.alpha = 1;
     this.beta  = 1;
     this.chiSquareDistributionAlpha = new ChiSquareDistribution(generator);
     this.chiSquareDistributionBeta  = new ChiSquareDistribution(generator);
     this.UpdateHelpers();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="StudentsTDistribution"/> 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 StudentsTDistribution(Generator generator)
     : base(generator)
 {
     this.nu = 1;
     this.normalDistribution       = new NormalDistribution(generator);
     this.normalDistribution.Mu    = 0.0;
     this.normalDistribution.Sigma = 1.0;
     this.chiSquareDistribution    = new ChiSquareDistribution(generator);
     this.UpdateHelpers();
 }