sdev-of-patches-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 patches that satisfy the conditions (must return a boolean of true or false) specified by the [first list of commands].
Examples:
sdev-of-patches-with [color = red] [food]
returns the standard deviation of the food of all the red patches.
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.
Related Commands:
max-of-patches-with
median-of-patches-with
min-of-patches-with
mode-of-patches-with
sdev-of-patches
sum-of-patches-with
variance-of-patches-with