median-of-breed
[list of commands]
Parameters:
[list of commands] |
List of commands |
list of commands that evaluate to a number |
Description:
Returns the median of the [list of commands] when evaluated across all the turtles of the specified breed.
Examples:
median-of-frogs [speed]
returns the median speed of all the turtles of breed frogs.
median-of-cars [size]
returns the median size of all the turtles of breed cars.
Notes:
If [list of commands] contains no numbers, an error occurs. 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-breed
median-of-turtles
min-of-breed
mode-of-breed
sdev-of-breed
sum-of-breed
variance-of-breed