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

NoncentralTDistribution() public method

Initializes a new instance of the TDistribution class.
public NoncentralTDistribution ( [ degreesOfFreedom, [ noncentrality ) : Accord.Math
degreesOfFreedom [ The degrees of freedom v.
noncentrality [ The noncentrality parameter μ (mu).
return Accord.Math
        public NoncentralTDistribution([Positive] double degreesOfFreedom, [Real] double noncentrality)
        {
            if (degreesOfFreedom <= 0)
            {
                throw new ArgumentOutOfRangeException("degreesOfFreedom",
                    "The number of degrees of freedom must be positive.");
            }

            this.v = degreesOfFreedom;
            this.u = noncentrality;
        }