Function: timeclock-mean

timeclock-mean is a byte-compiled function defined in timeclock.el.gz.

Signature

(timeclock-mean L)

Documentation

Compute the arithmetic mean of the values in the list L.

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/timeclock.el.gz
(defun timeclock-mean (l)
  "Compute the arithmetic mean of the values in the list L."
  (if (not (consp l))
      0
    (let ((total 0))
      (dolist (thisl l)
        (setq total (+ total thisl)))
      (/ total (length l)))))