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