Пример #1
0
        /// <summary>
        /// Variance for [X/Y].
        /// </summary>
        public static double DivVariance(Statistics x, Statistics y)
        {
            var yInvert = y.Invert();

            if (yInvert == null)
            {
                throw new DivideByZeroException();
            }
            return(MulVariance(x, yInvert));
        }
Пример #2
0
        /// <summary>
        /// Mean for [X/Y].
        /// </summary>
        public static double DivMean([CanBeNull] Statistics x, [CanBeNull] Statistics y)
        {
            if (x == null || y == null)
            {
                return(double.NaN);
            }
            var yInvert = y.Invert();

            if (yInvert == null)
            {
                throw new DivideByZeroException();
            }
            return(MulMean(x, yInvert));
        }
Пример #3
0
 /// <summary>
 /// Variance for [X/Y].
 /// </summary>        
 public static double DivVariance(Statistics x, Statistics y)
 {
     var yInvert = y.Invert();
     if (yInvert == null)
         throw new DivideByZeroException();
     return MulVariance(x, yInvert);
 }