/// <summary> /// Returns the value of the probability density function. /// </summary> /// <param name="x">Value</param> /// <returns>float precision floating point number</returns> public float Function(float x) { if (x <= 0) { return(1); } return(Special.GammaQ(k / 2.0f, x / 2.0f)); }
/// <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.GammaQ(x + 1, l)); }