예제 #1
0
        /// <summary>
        /// Initializes the Student's distribution.
        /// </summary>
        /// <param name="n">Degrees of freedom n ∈ (0, +inf)</param>
        public Student(float n)
        {
            this.N = n;
            float num = Special.GammaLog((n + 1) / 2.0f);
            float den = 0.5f * (float)Math.Log(n * Maths.Pi) + Special.GammaLog(n / 2.0f);

            this.lambda = num - den;
        }