/// <summary> /// Initializes a new instance of the <see cref="ErlangDistribution"/> 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 ErlangDistribution(Generator generator) : base(generator) { this.alpha = 1; this.lambda = 1.0; this.UpdateHelpers(); }
/// <summary> /// Initializes a new instance of the <see cref="ChiDistribution"/> class, using the specified /// <see cref="Generator"/> as underlying random number generator. /// </summary> /// <param name="N">Parameter of the distribution.</param> /// <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 ChiDistribution(int N, Generator generator) : base(generator) { this._normalDistribution = new NormalDistribution(0, 1, generator); Initialize(N); }
/// <summary> /// Initializes a new instance of the <see cref="PowerDistribution"/> 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 PowerDistribution(Generator generator) : this(1, 1, generator) { }
/// <summary> /// Initializes a new instance of the <see cref="GeometricDistribution"/> 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 GeometricDistribution(Generator generator) : this(0.5, generator) { }
/// <summary> /// Initializes a new instance of the <see cref="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) : this(1, generator) { }
public StudentTDistribution(double nu, Generator generator) : base(nu, generator) { }
public DiscreteUniformDistribution(Generator gen) : this(0, 1, gen) { }
public BinomialDistribution(int num, double prob, Generator ran) : base(ran) { Initialize(prob, num); }
public BinomialDistribution(Generator generator) : this(1, 0.5, generator) { }
/// <summary> /// Initializes a new instance of the <see cref="CauchyDistribution"/> class, using the specified /// <see cref="Generator"/> as underlying random number generator. /// </summary> /// <param name="alpha">First parameter of the distribution.</param> /// <param name="gamma">Second parameter of the distribution.</param> /// <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 CauchyDistribution(double alpha, double gamma, Generator generator) : base(generator) { Initialize(alpha, gamma); }
/// <summary> /// Initializes a new instance of the <see cref="ParetoDistribution"/> 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 ParetoDistribution(Generator generator) : this(1, 1, generator) { }
/// <summary> /// Initializes a new instance of the <see cref="CauchyDistribution"/> 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 CauchyDistribution(Generator generator) : this(1, 1, generator) { }
public ErlangDistribution(int order, double lambda, Generator ran) : base(ran) { Initialize(order, lambda); }
public ErlangDistribution(Generator gen) : this(1, 1, gen) { }
/// <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="nu">Parameter of the distribution.</param> /// <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(double nu, Generator generator) : base(generator) { this.normalDistribution = new NormalDistribution(0, 1, generator); this.Initialize(nu); }
/// <summary> /// Initializes a new instance of the <see cref="LaplaceDistribution"/> 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 LaplaceDistribution(Generator generator) : this(0, 1, generator) { }
/// <summary> /// Initializes a new instance of the <see cref="StudentTDistribution"/> 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 StudentTDistribution(Generator generator) : base(generator) { }
public LaplaceDistribution(double mu, double alpha, Generator generator) : base(generator) { Initialize(mu, alpha); }
/// <summary> /// Initializes a new instance of the <see cref="StudentsTDistribution"/> class, using a /// <see cref="StandardGenerator"/> as underlying random number generator. /// </summary> public StudentsTDistribution(Generator generator) : this(1, generator) { }
/// <summary> /// Initializes a new instance of the <see cref="Distribution"/> 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> protected Distribution(Generator generator) { if (generator == null) { string message = string.Format(null, ExceptionMessages.ArgumentNull, "generator"); throw new ArgumentNullException("generator", message); } this.generator = generator; }
/// <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="lower">Lower boundary of the distributed values.</param> /// <param name="upper">Upper boundary of the distributed values.</param> /// <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(int lower, int upper, Generator generator) : base(generator) { Initialize(lower, upper); }
/// <summary> /// Creates a new instance of this distribution with given parameters (alpha, beta, scale, location) and the provided random number generator. /// </summary> /// <param name="alpha">Distribution parameter alpha (broadness exponent).</param> /// <param name="gamma">Distribution parameter gamma (skew).</param> /// <param name="scale">Scaling parameter (broadness of the distribution).</param> /// <param name="location">Location of the distribution.</param> /// <param name="generator">Random number generator to be used with this distribution.</param> public StableDistributionFeller(double alpha, double gamma, double scale, double location, Generator generator) : this(alpha, gamma, GetAgaFromAlphaGamma(alpha, gamma), scale, location, generator) { }
public GeometricDistribution(double probability, Generator generator) : base(generator) { Initialize(probability); }
/// <summary> /// Creates a new instance of this distribution with given parameters (alpha, beta, abe, scale, location) and the provided random number generator. /// </summary> /// <param name="alpha">Distribution parameter alpha (broadness exponent).</param> /// <param name="gamma">Distribution parameter gamma (skew).</param> /// <param name="aga">Parameter to specify gamma with higher accuracy around it's limit(s). For an explanation how aga is defined, see <see cref="GetAgaFromAlphaGamma"/>.</param> /// <param name="scale">Scaling parameter (broadness of the distribution).</param> /// <param name="location">Location of the distribution.</param> /// <param name="generator">Random number generator to be used with this distribution.</param> public StableDistributionFeller(double alpha, double gamma, double aga, double scale, double location, Generator generator) : base(generator) { Initialize(alpha, gamma, aga, scale, location); }
public RayleighDistribution(double sigma, Generator generator) : base(generator) { this.normalDistribution1 = new NormalDistribution(0, 1, generator); this.normalDistribution2 = new NormalDistribution(0, 1, generator); this.Initialize(sigma); }
/// <summary> /// Creates a new instance of this distribution with default parameters (alpha=1, beta=0). /// </summary> /// <param name="generator">Random number generator to be used with this distribution.</param> public StableDistributionFeller(Generator generator) : this(1, 0, 1, 1, 0, generator) { }
/// <summary> /// Initializes a new instance of the <see cref="ChiDistribution"/> 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 ChiDistribution(Generator generator) : this(1, generator) { }
/// <summary>Initializes a new instance of the <see cref="ContinuousDistribution"/> class.</summary> /// <param name="generator">The random number generator used.</param> public ContinuousDistribution(Generator generator) : base(generator) { }
public PowerDistribution(double alpha, double beta, Generator generator) : base(generator) { Initialize(alpha, beta); }
public ContinuousUniformDistribution(double lower, double upper, Generator generator) : base(generator) { Initialize(lower, upper); }