Turtle and Observer Command

median-of-frogs-with [condition] [list of commands]

Returns the median of [list of commands] when [list of commands] is evaluated over the turtles of breed frogs satisfying [condition].

Note: When a turtle calls the command, it is not included as part of the calculation.

Examples:
median-of-frogs-with [color = red] [energy] returns a number corresponding to the median of the energies of all red frogs.

Related commands:

median-of-frogs median-of-patches-with median-of-turtles-with average-of-frogs variance-of-frogs