max-of-turtles
[list of commands]
Parameters:
[list of commands] |
List of commands |
list of commands that evaluate to a number |
Description:
Reports the highest value of [list of commands] when run over all of the turtles.
Examples:
max-of-turtles-with [speed]
reports the speed
of the fastest turtle.
Notes:
This command can also be executed by patches, for example within an ask-patches
statement.
If [list of commands]
contains no numbers, the smallest possible number is returned. If some of the [list of commands]
, when evaluated, are not numbers, those values are ignored.
When a turtle calls the command, it is not included as part of the calculation.
Related Commands:
max-of-breed
max-of-patches
max-of-turtles-with
median-of-turtles
min-of-turtles
mode-of-turtles
sdev-of-turtles
sum-of-turtles
variance-of-turtles