Accord.Statistics.Distributions.Univariate.BetaPrimeDistribution.BetaPrimeDistribution C# (CSharp) Méthode

BetaPrimeDistribution() public méthode

Constructs a new Beta-Prime distribution with the given two non-negative shape parameters a and b.
public BetaPrimeDistribution ( [ alpha, [ beta ) : System
alpha [ The distribution's non-negative shape parameter a.
beta [ The distribution's non-negative shape parameter b.
Résultat System
        public BetaPrimeDistribution([Positive] double alpha, [Positive] double beta)
        {
            if (alpha <= 0)
                throw new ArgumentOutOfRangeException("alpha", "The shape parameter alpha must be positive.");

            if (beta < 0)
                throw new ArgumentOutOfRangeException("beta", "The shape parameter beta must be positive.");


            this.alpha = alpha;
            this.beta = beta;
        }