public INumber ArithmeticMean(INumber[] arrayNumbers)
        {
            INumber res = Product(arrayNumbers);

            res.Divide(new RealNumber(arrayNumbers.Length));
            return(res);
        }
        public float Average()
        {
            if (Num.NumbersArr.Length < 1)
            {
                return(0);
            }

            int sum = Sum();

            return(iNum.Divide(sum, Num.NumbersArr.Length));
        }
示例#3
0
 public INumber Execute(RuntimeData runtime, INumber left, INumber right)
 {
     return(left.Divide(runtime, right));
 }