Maverick outlier agents on a random wald are nudged to the center of the field. The maverick is indicated by a red circle. Keep your eye on a gnat. When it gets too far out of line, it will be turned around.

View Code

When the swarm reaches steady state, the radius of the circle of containment fluctuates around a mean. This is a plot of the square of that radius as a function of generation for 100 gnats.

In "Transient Out" all gnats start at the center of field and begin to disperse. The plot to the left is of the distance of the maverick (gnat farthest from home) as a function of generation.

For "Transient In", all gnats are initially randomly distributed. They are coralled.

e website templates.