/// <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) { return(1.0f / Maths.Pi * Maths.Atg((x - x0) / g) + 0.5f); }