add-to-agentset manhattan-distance
add-to-agentset manhattan-distance neighbors-nowrap neighbors4-nowrap
add-to-agentset bordering-patches empty-patch-set empty-turtle-set lower-percent-of on-radius remove-from-agentset upper-percent-of
bitwise-and bitwise-not bitwise-or
cross dot magnitude normalize scalar-divide scalar-multiply vector-add vector-subtract
in-front-of in-frustum-of in-view-of
laplacian laplacian4 laplacian-center laplacian-neighbors __prewitt __roberts __robinson __sobel
Similar in behavior to lput except that this function modifies agentsets. Returns the union of an agent or agentset with another agentset. The agent or agentset must be of the same agent type as that of the agentset it is added to.
Returns the bitwise and of the integers.
Returns the bitwise not of the integers.
Returns the bitwise or of the integers.
Returns the patches that immediately neighbor the patches of a given patch-set. It's equivalent to taking the difference between the given patch-set, and the union of neighbors of the given patch-set.
Returns the three-dimensional cross product of lists 1 and 2. Both lists must be in 3 dimensions and consist of numbers.
Returns the dot-product of lists 1 and 2. Both lists must consist of numbers.
Returns an empty set that is used to hold patches. This is useful when comparing patch sets to an empty set or creating an initial set that will be filled in later by successive calls to add-to-agentset.
Returns an empty set that is used to hold turtles. This is useful when comparing turtle sets to an empty set or creating an initial set that will be filled in later by successive calls to add-to-agentset.
Returns all the patches that are within the positive half space that is defined by the orientation of the turtle's heading and position, i.e. it returns all patches that are in front of the given turtle. This view is limited to a non-wrapping world.
Returns all the patches that are within the viewing frustum defined by the turtle's heading, position, field of view, and depth limit. This function supports wrapping. Note that the wider the field-of-view, the more expensive the function call.
Returns all the patches that are within the viewing frustum defined by the turtle's heading, position, and field of view. This function assumes an "infinite" viewing depth, but is limited to a non-wrapping world.
Returns the laplacian value of a given reporter using values returned by a patch's eight neighbors. This is useful when analyzing patch variables.
Returns the laplacian value of a given reporter using values returned by a patch's four neighbors. This is useful when analyzing patch variables.
Returns the laplacian value of a given reporter using values returned by a patch's eight neighbors. Weighting is focused on the center patch (calling patch).
Returns the laplacian value of a given reporter using values returned by a patch's eight neighbors. Weighting is focused on the neighboring patches.
Returns the agents whose reported values fall within the lower percentage of all values that were returned by the given agentset.
Returns the magnitude of a list. The list must comprise entirely of numbers.
Returns the manhattan distance between agents 1 and 2. The manhattan distance is equal to the sum of the absolute distances in the x and y dimensions.
Returns the eight neighbors of a patch, but does not support a wrapping world.
Returns the four neighbors of a patch, but does not support a wrapping world.
Returns a normalized list (unit vector) of a given dimension. The components of the list must be numbers.
Returns the agents at a specified distance from the calling agent. The function is designed to give exclusive results according to successive calls with an integral radius.
Returns a patch's value after it has been convolved with its neighboring patches according to the Prewitt kernel.
Returns an agentset with the agent, or any agents in the first set, that coexist in the second set removed.
Returns a patch's value after it has been convolved with its neighboring patches according to the Roberts kernel.
Returns a patch's value after it has been convolved with its neighboring patches according to the Robinson kernel.
Divides all of the elements of a given list by a scalar value. All elements of the list must be numeric.
Multiplies all of the elements of a given list by a scalar value. All elements of the list must be numeric.
Returns the sign of a number: 1 if positive, -1 if negative, and 0 if neither.
Returns a patch's value after it has been convolved with its neighboring patches according to the Sobel kernel.
Returns the agents whose reported values fall within the upper percentage of all values that were returned by the given agentset.
Returns a list that results when lists 1 and 2 are added together element by element. Lists 1 and 2 must consist entirely of numbers.
Returns a list that results when lists 2 is subtracted element by element from list 1. Lists 1 and 2 must consist entirely of numbers.