Exemple #1
0
 /// <summary>
 /// Returns the value of the probability distribution function.
 /// </summary>
 /// <param name="x">Value</param>
 /// <returns>float precision floating point number</returns>
 public float Distribution(float x)
 {
     if (x <= 0)
     {
         return(0);
     }
     return(Special.BetaIncomplete(alpha, beta, x / (1 + x)));
 }
Exemple #2
0
        /// <summary>
        /// Returns the value of the probability distribution function.
        /// </summary>
        /// <param name="x">Value</param>
        /// <returns>float precision floating point number</returns>
        public float Distribution(float x)
        {
            float v    = degrees;
            float sqrt = (float)Math.Sqrt(x * x + v);
            float u    = (x + sqrt) / (2 * sqrt);

            return(Special.BetaIncomplete(v / 2.0f, v / 2.0f, u));
        }
Exemple #3
0
        /// <summary>
        /// Returns the value of the probability distribution function.
        /// </summary>
        /// <param name="x">Value</param>
        /// <returns>float precision floating point number</returns>
        public float Distribution(float x)
        {
            if (x <= 0)
            {
                return(0);
            }

            float u = (d1 * x) / (d1 * x + d2);

            return(Special.BetaIncomplete(d1 * 0.5f, d2 * 0.5f, u));
        }