Accord.Statistics.Distributions.Univariate.GompertzDistribution.GompertzDistribution C# (CSharp) Method

GompertzDistribution() public method

Initializes a new instance of the GompertzDistribution class.
public GompertzDistribution ( [ eta, [ b ) : System
eta [ The shape parameter η.
b [ The scale parameter b.
return System
        public GompertzDistribution([Positive] double eta, [Positive] double b)
        {
            if (eta <= 0)
                throw new ArgumentOutOfRangeException("eta", "The shape eta must be positive.");

            if (b <= 0)
                throw new ArgumentOutOfRangeException("b", "The scale b must be positive.");

            this.eta = eta;
            this.b = b;
        }