MEAN

The MEAN function returns a numeric value that approximates the arithmetic average of its arguments.

The function type is numeric.

Read syntax diagramSkip visual syntax diagram
Format

                     .------------.      
                     V            |      
>>-FUNCTION MEAN--(----argument-1-+--)-------------------------><

argument-1
Must be class numeric.

The returned value is the arithmetic mean of the argument-1 series. The returned value is defined as the sum of the argument-1 series divided by the number of occurrences referenced by argument-1.

The equivalent arithmetic expression shall be as follows:
  1. For one occurrence of argument-1,

    (argument-1)

  2. For two occurrences of argument-1,

    ((argument-11 + argument-12) / 2 )

  3. For n occurrences of argument-1,

    ((argument-11 + argument-12 + ... + argument-1n) / n)

Related Information