sdev-of-turtles-with
[first list of commands] [second list of commands]
Parameters:
[first list of commands] |
List of commands |
|
[second list of commands] |
List of commands |
|
Description:
Returns the standard deviation of the [second list of commands] when evaluated across all the turtles that satisfy the conditions (must return a boolean of true or false) specified by the [first list of commands].
Examples:
sdev-of-turtles-with [color = red] [speed]
returns the standard deviation of the speed of all the red turtles.
Notes:
If [second list of commands] contains no numbers, an error occurs. If some of the [second 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-turtles-with
median-of-turtles-with
min-of-turtles-with
mode-of-turtles-with
sdev-of-breed-with
sdev-of-turtles
sum-of-turtles-with
variance-of-turtles-with