NetLogo Help: mean

### mean1.0

#### mean list

Reports the statistical mean of the numeric items in the given list. Ignores non-numeric items. The mean is the average, i.e., the sum of the items divided by the total number of items.

In NetLogo 6.1.1 and earlier, mean would error when finding non-number values in the given list.

    show mean [xcor] of turtles
    ;; prints the average of all the turtles' x coordinates

See this FAQ question for information on possible issues using mean with agentsets

Take me to the full NetLogo Dictionary