/// <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))); }
/// <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)); }
/// <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)); }