Function: calcFunc-vgmean
calcFunc-vgmean is an autoloaded and byte-compiled function defined in
calc-stat.el.gz.
Signature
(calcFunc-vgmean &rest VECS)
Source Code
;; Defined in /usr/src/emacs/lisp/calc/calc-stat.el.gz
(defun calcFunc-vgmean (&rest vecs)
(let* ((flat (math-flatten-many-vecs vecs))
(len (1- (length flat))))
(if (= len 0)
(math-reject-arg nil "*Must be at least 1 argument")
(math-with-extra-prec 2
(let ((x (calcFunc-reduce '(var mul math-mul) flat)))
(if (= len 2)
(math-sqrt x)
(math-pow x (list 'frac 1 len))))))))