예제 #1
0
파일: Gamma.cs 프로젝트: asiryan/UMapx
 /// <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.GammaP(k, x / thetta));
 }
예제 #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)
 {
     if (x <= 0)
     {
         return(0);
     }
     return(Special.GammaP(k / 2.0f, x / 2.0f));
 }
예제 #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);
            }

            return(Special.GammaP(mu, (mu / omega) * (x * x)));
        }
예제 #4
0
 /// <summary>
 /// Gets the cumulative distribution function (cdf) for
 /// the this distribution evaluated at point <c>x</c>.
 /// </summary>
 /// <param name="x">A single point in the distribution range.</param>
 /// <returns></returns>
 /// <remarks>
 /// The Cumulative Distribution Function (CDF) describes the cumulative
 /// probability that a given value or any value smaller than it will occur.
 /// </remarks>
 public override double DistributionFunction(double x)
 {
     return(Special.GammaP(mu, (mu / omega) * (x * x)));
 }