sdev-of-turtles-with [1st list of commands] [2nd list of
commands]
Returns the standard deviation of the [2nd list of commands]
when evaluated across all the turtles that satisfy the conditions (must
return a boolean of true or false) specified by the [1st list of
commands] .
Note: If [2nd list of commands] contains no numbers, an
error occurs. If some of the [2nd list of commands] , when
evaluated, are not numbers, those values are ignored.
Note: When a turtle calls the command, it is not included as part of
the calculation.
Examples:
sdev-of-turtles-with [color = red] [speed] returns the standard
deviation of the speed of all the red turtles.
Related commands:
sdev-of-list sdev-of-patches
|