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

InverseChiSquareDistribution() public method

Constructs a new Inverse Chi-Square distribution with the given degrees of freedom.
public InverseChiSquareDistribution ( [ degreesOfFreedom ) : System
degreesOfFreedom [ The degrees of freedom for the distribution.
return System
        public InverseChiSquareDistribution([PositiveInteger] int degreesOfFreedom)
        {
            if (degreesOfFreedom <= 0)
            {
                throw new ArgumentOutOfRangeException("degreesOfFreedom",
                    "The number of degrees of freedom must be higher than zero.");
            }

            this.degreesOfFreedom = degreesOfFreedom;
        }