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.GammaP(k, x / thetta));
 }
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)
 {
     if (x <= 0)
     {
         return(0);
     }
     return(Special.GammaP(k / 2.0f, x / 2.0f));
 }
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);
            }

            return(Special.GammaP(mu, (mu / omega) * (x * x)));
        }
 /// <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)));
 }