BetaDistribution() : base() { _gammaAlpha = new GammaDistribution(this.RandomSource); _gammaBeta = new GammaDistribution(this.RandomSource); SetDistributionParameters(1.0, 1.0); }
BetaDistribution() : base() { _gammaAlpha = new GammaDistribution(this.RandomSource); _gammaBeta = new GammaDistribution(this.RandomSource); SetDistributionParameters(1.0, 1.0); }
BetaDistribution(RandomSource random) : base(random) { _gammaAlpha = new GammaDistribution(random); _gammaBeta = new GammaDistribution(random); SetDistributionParameters(1.0, 1.0); }
/// <summary> /// Initializes a new instance, using a <see cref="SystemRandomSource"/> /// as underlying random number generator. /// </summary> public BetaDistribution(double alpha, double beta) : base() { SetDistributionParameters(alpha, beta); _gammaAlpha = new GammaDistribution(this.RandomSource); _gammaBeta = new GammaDistribution(this.RandomSource); }
/// <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 BetaDistribution(RandomSource random) : base(random) { SetDistributionParameters(1.0, 1.0); _gammaAlpha = new GammaDistribution(random); _gammaBeta = new GammaDistribution(random); }
BetaDistribution( double alpha, double beta) { _gammaAlpha = new GammaDistribution(RandomSource); _gammaBeta = new GammaDistribution(RandomSource); SetDistributionParameters(alpha, beta); }
/// <summary> /// Initializes a new instance of the BetaDistribution class, /// using a <see cref="SystemRandomSource"/> as underlying random number generator. /// </summary> public BetaDistribution( double alpha, double beta) { _gammaAlpha = new GammaDistribution(RandomSource); _gammaBeta = new GammaDistribution(RandomSource); SetDistributionParameters(alpha, beta); }
/// <summary> /// Initializes a new instance of the BetaDistribution class, /// using a <see cref="SystemRandomSource"/> as underlying random number generator. /// </summary> public BetaDistribution() { _gammaAlpha = new GammaDistribution(RandomSource); _gammaBeta = new GammaDistribution(RandomSource); SetDistributionParameters(1.0, 1.0); }
BetaDistribution( double alpha, double beta ) : base() { _gammaAlpha = new GammaDistribution(this.RandomSource); _gammaBeta = new GammaDistribution(this.RandomSource); SetDistributionParameters(alpha, beta); }
public void IRID205_GammaDistInvCdfSmallAlphaLargeTheta() { double alpha = 0.016512683231958761; double theta = 73076944.560563684; GammaDistribution gamma_dist = new GammaDistribution(alpha, theta); double left_tail = gamma_dist.InverseCumulativeDistribution(0.001); Assert.That(left_tail, Is.Not.NaN); }
static double GAMMADIST(double x, double alpha, double beta, bool cumulative) { GammaDistribution dist = new GammaDistribution(alpha, beta); return cumulative ? dist.CumulativeDistribution(x) : dist.ProbabilityDensity(x); }
static double GAMMAINV(double x, double alpha, double beta) { GammaDistribution dist = new GammaDistribution(alpha, beta); return dist.InverseCumulativeDistribution(x); }