示例#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));
        }
 /// <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);
 }