OM-MEAN

[GENERIC-FUNCTION]


OM 6.1
Function Reference
ARGUMENTS:
  - self list of numbers [default = (1)]
&optional
 
  - weights list of numbers [default = 1]

Description:

Arithmetic mean of numbers in a list.

The optional input <weights> is a list of weights used to ponderate the successive elements in the list.

Ex. (om-mean '(1 2 3 4)) => 2.5
Ex. (om-mean '(1 2 3 4) '(3 2 1 1)) => 2.0