max-of-breed
[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 the turtles of the breed specified by breed
.
Examples:
max-of-frogs [speed]
returns the turtle of breed frogs
with the highest value of speed
.
max-of-cars [size]
returns the turtle of breed cars
with the highest value of size
.
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:
average-of-breed
max-of-turtles
median-of-breed
min-of-breed
mode-of-breed
sdev-of-breed
sum-of-breed
variance-of-breed